Class: Puma::Acme::Answer
- Inherits:
-
Struct
- Object
- Struct
- Puma::Acme::Answer
- Defined in:
- lib/puma/acme/structs.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token
21 22 23 |
# File 'lib/puma/acme/structs.rb', line 21 def token @token end |
#type ⇒ Object
Returns the value of attribute type
21 22 23 |
# File 'lib/puma/acme/structs.rb', line 21 def type @type end |
#value ⇒ Object
Returns the value of attribute value
21 22 23 |
# File 'lib/puma/acme/structs.rb', line 21 def value @value end |
Class Method Details
.from(acme_challenge) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/puma/acme/structs.rb', line 22 def self.from(acme_challenge) new( type: acme_challenge.challenge_type, token: acme_challenge.token, value: acme_challenge. ) end |
.key(type:, token:) ⇒ Object
30 31 32 |
# File 'lib/puma/acme/structs.rb', line 30 def self.key(type:, token:) new(type: type, token: token).key end |
Instance Method Details
#key ⇒ Object
34 35 36 |
# File 'lib/puma/acme/structs.rb', line 34 def key [:answer, type, token] end |