Class: PlaidError
- Inherits:
-
PlaidObject
- Object
- PlaidObject
- PlaidError
- Defined in:
- lib/plaid/plaid_error.rb
Instance Method Summary collapse
- #error_message ⇒ Object
- #http_code ⇒ Object
-
#initialize(response, message) ⇒ PlaidError
constructor
A new instance of PlaidError.
- #plaid_code ⇒ Object
- #raw_response ⇒ Object
- #resolution ⇒ Object
Methods inherited from PlaidObject
Constructor Details
#initialize(response, message) ⇒ PlaidError
Returns a new instance of PlaidError.
9 10 11 12 13 14 15 16 17 |
# File 'lib/plaid/plaid_error.rb', line 9 def initialize(response, ) if response.parsed_response super(response.parsed_response) else super(response) end @response = response @message = end |
Instance Method Details
#error_message ⇒ Object
19 20 21 |
# File 'lib/plaid/plaid_error.rb', line 19 def self. end |
#http_code ⇒ Object
23 24 25 |
# File 'lib/plaid/plaid_error.rb', line 23 def http_code @response.code if @response end |
#plaid_code ⇒ Object
27 28 29 |
# File 'lib/plaid/plaid_error.rb', line 27 def plaid_code response.code end |
#raw_response ⇒ Object
35 36 37 |
# File 'lib/plaid/plaid_error.rb', line 35 def raw_response @response if @response end |
#resolution ⇒ Object
31 32 33 |
# File 'lib/plaid/plaid_error.rb', line 31 def resolution self.resolve end |