Exception: IndifferentReader::DataError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data) ⇒ DataError

Returns a new instance of DataError.



5
6
7
8
# File 'lib/indifferent_reader.rb', line 5

def initialize message, data
  @data = data
  super(message)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/indifferent_reader.rb', line 4

def data
  @data
end