Class: Acme::Resources::Authorization
- Inherits:
-
Object
- Object
- Acme::Resources::Authorization
- Defined in:
- lib/acme/resources/authorization.rb
Constant Summary collapse
- HTTP01 =
Acme::Resources::Challenges::HTTP01
- DNS01 =
Acme::Resources::Challenges::DNS01
Instance Attribute Summary collapse
-
#dns01 ⇒ Object
readonly
Returns the value of attribute dns01.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#http01 ⇒ Object
readonly
Returns the value of attribute http01.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(client, response) ⇒ Authorization
constructor
A new instance of Authorization.
Constructor Details
#initialize(client, response) ⇒ Authorization
Returns a new instance of Authorization.
7 8 9 10 11 |
# File 'lib/acme/resources/authorization.rb', line 7 def initialize(client, response) @client = client assign_challenges(response.body['challenges']) assign_attributes(response.body) end |
Instance Attribute Details
#dns01 ⇒ Object (readonly)
Returns the value of attribute dns01.
5 6 7 |
# File 'lib/acme/resources/authorization.rb', line 5 def dns01 @dns01 end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
5 6 7 |
# File 'lib/acme/resources/authorization.rb', line 5 def domain @domain end |
#http01 ⇒ Object (readonly)
Returns the value of attribute http01.
5 6 7 |
# File 'lib/acme/resources/authorization.rb', line 5 def http01 @http01 end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/acme/resources/authorization.rb', line 5 def status @status end |