Class: Puma::Acme::Account

Inherits:
Struct
  • Object
show all
Defined in:
lib/puma/acme/structs.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contactObject

Returns the value of attribute contact

Returns:

  • (Object)

    the current value of contact



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def contact
  @contact
end

#directoryObject

Returns the value of attribute directory

Returns:

  • (Object)

    the current value of directory



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def directory
  @directory
end

#eabObject

Returns the value of attribute eab

Returns:

  • (Object)

    the current value of eab



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def eab
  @eab
end

#jwkObject

Returns the value of attribute jwk

Returns:

  • (Object)

    the current value of jwk



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def jwk
  @jwk
end

#key_pemObject

Returns the value of attribute key_pem

Returns:

  • (Object)

    the current value of key_pem



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def key_pem
  @key_pem
end

#kidObject

Returns the value of attribute kid

Returns:

  • (Object)

    the current value of kid



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def kid
  @kid
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def status
  @status
end

#tos_agreedObject

Returns the value of attribute tos_agreed

Returns:

  • (Object)

    the current value of tos_agreed



6
7
8
# File 'lib/puma/acme/structs.rb', line 6

def tos_agreed
  @tos_agreed
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of 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()
  new(.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

#keyObject



16
17
18
# File 'lib/puma/acme/structs.rb', line 16

def key
  [:account, directory, contact, eab&.key]
end