Class: Puma::Acme::Account
- Inherits:
-
Struct
- Object
- Struct
- Puma::Acme::Account
- Defined in:
- lib/puma/acme/structs.rb
Overview
Instance Attribute Summary collapse
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#eab ⇒ Object
Returns the value of attribute eab.
-
#jwk ⇒ Object
Returns the value of attribute jwk.
-
#key_pem ⇒ Object
Returns the value of attribute key_pem.
-
#kid ⇒ Object
Returns the value of attribute kid.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tos_agreed ⇒ Object
Returns the value of attribute tos_agreed.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#contact ⇒ Object
Returns the value of attribute contact
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def contact @contact end |
#directory ⇒ Object
Returns the value of attribute directory
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def directory @directory end |
#eab ⇒ Object
Returns the value of attribute eab
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def eab @eab end |
#jwk ⇒ Object
Returns the value of attribute jwk
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def jwk @jwk end |
#key_pem ⇒ Object
Returns the value of attribute key_pem
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def key_pem @key_pem end |
#kid ⇒ Object
Returns the value of attribute kid
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def kid @kid end |
#status ⇒ Object
Returns the value of attribute status
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def status @status end |
#tos_agreed ⇒ Object
Returns the value of attribute tos_agreed
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def tos_agreed @tos_agreed end |
#url ⇒ Object
Returns the value of attribute url
6 7 8 |
# File 'lib/puma/acme/structs.rb', line 6 def url @url end |
Class Method Details
.from(acme_account) ⇒ Object
12 13 14 |
# File 'lib/puma/acme/structs.rb', line 12 def self.from(acme_account) new(acme_account.to_h.slice(*members)) end |
.key(directory:, contact: nil, eab: nil) ⇒ Object
8 9 10 |
# File 'lib/puma/acme/structs.rb', line 8 def self.key(directory:, contact: nil, eab: nil) new(directory: directory, contact: contact, eab: eab).key end |
Instance Method Details
#key ⇒ Object
16 17 18 |
# File 'lib/puma/acme/structs.rb', line 16 def key [:account, directory, contact, eab&.key] end |