Exception: StockMarkit::ApiException
- Inherits:
-
Exception
- Object
- Exception
- StockMarkit::ApiException
- Defined in:
- lib/stock-markit/api_exception.rb
Overview
Api Exception Object
- Copyright
-
Copyright © 2016 Michael Heijmans
- License
-
MIT
Instance Attribute Summary collapse
-
#api_results ⇒ String
readonly
The httparty object for inspecting.
-
#message ⇒ String
readonly
The Error Message.
Instance Method Summary collapse
-
#initialize(message = "Api Error", api_results = nil) ⇒ ApiException
constructor
A new instance of ApiException.
Constructor Details
#initialize(message = "Api Error", api_results = nil) ⇒ ApiException
Returns a new instance of ApiException.
16 17 18 19 |
# File 'lib/stock-markit/api_exception.rb', line 16 def initialize(="Api Error", api_results=nil) @api_results = api_results super() end |
Instance Attribute Details
#api_results ⇒ String (readonly)
The httparty object for inspecting
12 13 14 |
# File 'lib/stock-markit/api_exception.rb', line 12 def api_results @api_results end |
#message ⇒ String (readonly)
The Error Message
12 13 14 |
# File 'lib/stock-markit/api_exception.rb', line 12 def @message end |