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
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def @authorizations end |
#error ⇒ Object
Returns the value of attribute error
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def error @error end |
#expires ⇒ Object
Returns the value of attribute expires
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def expires @expires end |
#identifiers ⇒ Object
Returns the value of attribute identifiers
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def identifiers @identifiers end |
#not_after ⇒ Object
Returns the value of attribute not_after
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def not_after @not_after end |
#not_before ⇒ Object
Returns the value of attribute not_before
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def not_before @not_before end |
#status ⇒ Object
Returns the value of attribute status
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def status @status end |
#url ⇒ Object
Returns the value of attribute url
128 129 130 |
# File 'lib/puma/acme/structs.rb', line 128 def url @url end |
Class Method Details
.from(acme_order) ⇒ Object
130 131 132 133 134 135 |
# File 'lib/puma/acme/structs.rb', line 130 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
137 138 139 |
# File 'lib/puma/acme/structs.rb', line 137 def expired?(now: Time.now.utc) expires < now end |