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.



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

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.



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

def error_description
  @error_description
end

#http_responseObject (readonly)

Returns the value of attribute http_response.



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

def http_response
  @http_response
end