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.



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

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.



52
53
54
# File 'lib/dnsimple/error.rb', line 52

def error
  @error
end

#error_descriptionObject (readonly)

Returns the value of attribute error_description.



52
53
54
# File 'lib/dnsimple/error.rb', line 52

def error_description
  @error_description
end

#http_responseObject (readonly)

Returns the value of attribute http_response.



52
53
54
# File 'lib/dnsimple/error.rb', line 52

def http_response
  @http_response
end