Class: Puma::Acme::Challenge

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#answerObject

Returns the value of attribute answer

Returns:

  • (Object)

    the current value of answer



106
107
108
# File 'lib/puma/acme/structs.rb', line 106

def answer
  @answer
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



106
107
108
# File 'lib/puma/acme/structs.rb', line 106

def error
  @error
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



106
107
108
# File 'lib/puma/acme/structs.rb', line 106

def token
  @token
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



106
107
108
# File 'lib/puma/acme/structs.rb', line 106

def type
  @type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



106
107
108
# File 'lib/puma/acme/structs.rb', line 106

def url
  @url
end

Class Method Details

.from(acme_challenge) ⇒ Object



107
108
109
110
# File 'lib/puma/acme/structs.rb', line 107

def self.from(acme_challenge)
  new(acme_challenge.to_h.slice(*members).merge(type: acme_challenge.challenge_type,
                                                answer: Answer.from(acme_challenge)))
end