Class: ReciteCSV::Row::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/recite_csv/row/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_data) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/recite_csv/row/base.rb', line 8

def initialize(raw_data)
  @raw_data = raw_data
end

Instance Attribute Details

#raw_dataObject (readonly)

Returns the value of attribute raw_data.



6
7
8
# File 'lib/recite_csv/row/base.rb', line 6

def raw_data
  @raw_data
end

Instance Method Details

#[](key) ⇒ Object



12
13
14
# File 'lib/recite_csv/row/base.rb', line 12

def [](key)
  self.raw_data[key]
end