Exception: Dnsimple::OAuthInvalidRequestError
- Defined in:
- lib/dnsimple/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_description ⇒ Object
readonly
Returns the value of attribute error_description.
-
#http_response ⇒ Object
readonly
Returns the value of attribute http_response.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ OAuthInvalidRequestError
constructor
A new instance of OAuthInvalidRequestError.
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() end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
52 53 54 |
# File 'lib/dnsimple/error.rb', line 52 def error @error end |
#error_description ⇒ Object (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_response ⇒ Object (readonly)
Returns the value of attribute http_response.
52 53 54 |
# File 'lib/dnsimple/error.rb', line 52 def http_response @http_response end |