Class: Puma::Acme::Order
- Inherits:
-
Struct
- Object
- Struct
- Puma::Acme::Order
- Defined in:
- lib/puma/acme/structs.rb
Overview
Instance Attribute Summary collapse
-
#authorizations ⇒ Object
Returns the value of attribute authorizations.
-
#error ⇒ Object
Returns the value of attribute error.
-
#expires ⇒ Object
Returns the value of attribute expires.
-
#identifiers ⇒ Object
Returns the value of attribute identifiers.
-
#not_after ⇒ Object
Returns the value of attribute not_after.
-
#not_before ⇒ Object
Returns the value of attribute not_before.
-
#status ⇒ Object
Returns the value of attribute status.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#authorizations ⇒ Object
Returns the value of attribute authorizations
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def @authorizations end |
#error ⇒ Object
Returns the value of attribute error
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def error @error end |
#expires ⇒ Object
Returns the value of attribute expires
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def expires @expires end |
#identifiers ⇒ Object
Returns the value of attribute identifiers
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def identifiers @identifiers end |
#not_after ⇒ Object
Returns the value of attribute not_after
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def not_after @not_after end |
#not_before ⇒ Object
Returns the value of attribute not_before
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def not_before @not_before end |
#status ⇒ Object
Returns the value of attribute status
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def status @status end |
#url ⇒ Object
Returns the value of attribute url
135 136 137 |
# File 'lib/puma/acme/structs.rb', line 135 def url @url end |
Class Method Details
.from(acme_order) ⇒ Object
137 138 139 140 141 142 |
# File 'lib/puma/acme/structs.rb', line 137 def self.from(acme_order) identifiers = acme_order.identifiers.map { |i| Identifier.new(i) } = acme_order..map { |a| Authz.from(a) } new(acme_order.to_h.slice(*members).merge(identifiers: identifiers, authorizations: )) end |
Instance Method Details
#expired?(now: Time.now.utc) ⇒ Boolean
144 145 146 |
# File 'lib/puma/acme/structs.rb', line 144 def expired?(now: Time.now.utc) expires < now end |