Class: Acme::Resources::Authorization

Inherits:
Object
  • Object
show all
Defined in:
lib/acme/resources/authorization.rb

Constant Summary collapse

HTTP01 =
Acme::Resources::Challenges::HTTP01
DNS01 =
Acme::Resources::Challenges::DNS01

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dns01Object (readonly)

Returns the value of attribute dns01.



5
6
7
# File 'lib/acme/resources/authorization.rb', line 5

def dns01
  @dns01
end

#domainObject (readonly)

Returns the value of attribute domain.



5
6
7
# File 'lib/acme/resources/authorization.rb', line 5

def domain
  @domain
end

#http01Object (readonly)

Returns the value of attribute http01.



5
6
7
# File 'lib/acme/resources/authorization.rb', line 5

def http01
  @http01
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/acme/resources/authorization.rb', line 5

def status
  @status
end