Class: Csv2hash::Adapter::MemoryAdapter

Inherits:
Abstract
  • Object
show all
Defined in:
lib/csv2hash/adapters/memory_adapter.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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