Exception: Dnsimple::OAuthInvalidRequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/dnsimple/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ OAuthInvalidRequestError

Returns a new instance of OAuthInvalidRequestError.



59
60
61
62
63
64
# File 'lib/dnsimple/error.rb', line 59

def initialize(http_response)
  @http_response = http_response
  @error = http_response.parsed_response["error"]
  @error_description = http_response.parsed_response["error_description"]
  super(message)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



56
57
58
# File 'lib/dnsimple/error.rb', line 56

def error
  @error
end

#error_descriptionObject (readonly)

Returns the value of attribute error_description.



57
58
59
# File 'lib/dnsimple/error.rb', line 57

def error_description
  @error_description
end

#http_responseObject (readonly)

Returns the value of attribute http_response.



55
56
57
# File 'lib/dnsimple/error.rb', line 55

def http_response
  @http_response
end