Exception: Rakumarket::RakumarketError
- Inherits:
-
StandardError
- Object
- StandardError
- Rakumarket::RakumarketError
- Defined in:
- lib/rakumarket.rb
Overview
Contains information for errors returned by the API
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ RakumarketError
constructor
A new instance of RakumarketError.
Constructor Details
#initialize(data) ⇒ RakumarketError
Returns a new instance of RakumarketError.
37 38 39 40 |
# File 'lib/rakumarket.rb', line 37 def initialize(data) @data = data super data[:status_msg] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
35 36 37 |
# File 'lib/rakumarket.rb', line 35 def data @data end |