Class: Csv2hash::Adapter::MemoryAdapter
- Inherits:
-
Abstract
- Object
- Abstract
- Csv2hash::Adapter::MemoryAdapter
- Defined in:
- lib/csv2hash/adapters/memory_adapter.rb
Instance Attribute Summary (collapse)
-
- (Object) data
Returns the value of attribute data.
Instance Method Summary (collapse)
-
- (MemoryAdapter) initialize(data)
constructor
A new instance of MemoryAdapter.
- - (Object) source
Constructor Details
- (MemoryAdapter) initialize(data)
Returns a new instance of MemoryAdapter
9 10 11 |
# File 'lib/csv2hash/adapters/memory_adapter.rb', line 9 def initialize data self.data = data end |
Instance Attribute Details
- (Object) data
Returns the value of attribute data
7 8 9 |
# File 'lib/csv2hash/adapters/memory_adapter.rb', line 7 def data @data end |
Instance Method Details
- (Object) source
13 14 15 |
# File 'lib/csv2hash/adapters/memory_adapter.rb', line 13 def source self.data end |