Class: Puma::Acme::Challenge
- Inherits:
-
Struct
- Object
- Struct
- Puma::Acme::Challenge
- Defined in:
- lib/puma/acme/structs.rb
Overview
Instance Attribute Summary collapse
-
#answer ⇒ Object
Returns the value of attribute answer.
-
#error ⇒ Object
Returns the value of attribute error.
-
#token ⇒ Object
Returns the value of attribute token.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#answer ⇒ Object
Returns the value of attribute answer
106 107 108 |
# File 'lib/puma/acme/structs.rb', line 106 def answer @answer end |
#error ⇒ Object
Returns the value of attribute error
106 107 108 |
# File 'lib/puma/acme/structs.rb', line 106 def error @error end |
#token ⇒ Object
Returns the value of attribute token
106 107 108 |
# File 'lib/puma/acme/structs.rb', line 106 def token @token end |
#type ⇒ Object
Returns the value of attribute type
106 107 108 |
# File 'lib/puma/acme/structs.rb', line 106 def type @type end |
#url ⇒ Object
Returns the value of attribute url
106 107 108 |
# File 'lib/puma/acme/structs.rb', line 106 def url @url end |
Class Method Details
.from(acme_challenge) ⇒ Object
107 108 109 110 |
# File 'lib/puma/acme/structs.rb', line 107 def self.from(acme_challenge) new(acme_challenge.to_h.slice(*members).merge(type: acme_challenge.challenge_type, answer: Answer.from(acme_challenge))) end |