Class: Puma::Acme::Authz
- Inherits:
-
Struct
- Object
- Struct
- Puma::Acme::Authz
- Defined in:
- lib/puma/acme/structs.rb
Overview
Instance Attribute Summary collapse
-
#challenges ⇒ Object
Returns the value of attribute challenges.
-
#expires ⇒ Object
Returns the value of attribute expires.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#status ⇒ Object
Returns the value of attribute status.
-
#url ⇒ Object
Returns the value of attribute url.
-
#wildcard ⇒ Object
Returns the value of attribute wildcard.
Class Method Summary collapse
Instance Attribute Details
#challenges ⇒ Object
Returns the value of attribute challenges
40 41 42 |
# File 'lib/puma/acme/structs.rb', line 40 def challenges @challenges end |
#expires ⇒ Object
Returns the value of attribute expires
40 41 42 |
# File 'lib/puma/acme/structs.rb', line 40 def expires @expires end |
#identifier ⇒ Object
Returns the value of attribute identifier
40 41 42 |
# File 'lib/puma/acme/structs.rb', line 40 def identifier @identifier end |
#status ⇒ Object
Returns the value of attribute status
40 41 42 |
# File 'lib/puma/acme/structs.rb', line 40 def status @status end |
#url ⇒ Object
Returns the value of attribute url
40 41 42 |
# File 'lib/puma/acme/structs.rb', line 40 def url @url end |
#wildcard ⇒ Object
Returns the value of attribute wildcard
40 41 42 |
# File 'lib/puma/acme/structs.rb', line 40 def wildcard @wildcard end |
Class Method Details
.from(acme_authz) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/puma/acme/structs.rb', line 41 def self.from(acme_authz) identifier = Identifier.from(acme_authz.identifier) challenges = acme_authz.challenges .reject { |c| c.is_a?(::Acme::Client::Resources::Challenges::Unsupported) } .map { |c| Challenge.from(c) } new(acme_authz.to_h.slice(*members).merge(challenges: challenges, identifier: identifier)) end |