Class: Puma::Acme::Identifier
- Inherits:
-
Struct
- Object
- Struct
- Puma::Acme::Identifier
- Defined in:
- lib/puma/acme/structs.rb
Instance Attribute Summary collapse
-
#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
#type ⇒ Object
Returns the value of attribute type
119 120 121 |
# File 'lib/puma/acme/structs.rb', line 119 def type @type end |
#value ⇒ Object
Returns the value of attribute value
119 120 121 |
# File 'lib/puma/acme/structs.rb', line 119 def value @value end |
Class Method Details
.from(acme_identifier) ⇒ Object
125 126 127 |
# File 'lib/puma/acme/structs.rb', line 125 def self.from(acme_identifier) new(acme_identifier.to_h.slice(*members.map(&:to_s))) end |
.parse(value) ⇒ Object
120 121 122 123 |
# File 'lib/puma/acme/structs.rb', line 120 def self.parse(value) # TODO: ip identifiers new(type: :dns, value: value) end |
Instance Method Details
#key ⇒ Object
129 130 131 |
# File 'lib/puma/acme/structs.rb', line 129 def key [:identifier, type, value] end |