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



99
100
101
# File 'lib/puma/acme/structs.rb', line 99

def answer
  @answer
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



99
100
101
# File 'lib/puma/acme/structs.rb', line 99

def error
  @error
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



99
100
101
# File 'lib/puma/acme/structs.rb', line 99

def token
  @token
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



99
100
101
# File 'lib/puma/acme/structs.rb', line 99

def type
  @type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



99
100
101
# File 'lib/puma/acme/structs.rb', line 99

def url
  @url
end

Class Method Details

.from(acme_challenge) ⇒ Object



100
101
102
103
# File 'lib/puma/acme/structs.rb', line 100

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