class Acme::Client::Resources::Authorization

def initialize_challenge(attributes)

def initialize_challenge(attributes)
  arguments = {
    type: attributes.fetch('type'),
    status: attributes.fetch('status'),
    url: attributes.fetch('url'),
    token: attributes.fetch('token', nil),
    error: attributes['error']
  }
  Acme::Client::Resources::Challenges.new(@client, **arguments)
end