Exception: Rakumarket::RakumarketError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rakumarket.rb

Overview

Contains information for errors returned by the API

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



35
36
37
# File 'lib/rakumarket.rb', line 35

def data
  @data
end