Class: Impex::File

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/impex/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, config = {}) ⇒ File

Returns a new instance of File.



11
12
13
14
15
# File 'lib/impex/file.rb', line 11

def initialize(file, config = {})
  @file = file
  @rows = []
  @table = config[:table].classify.constantize
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



9
10
11
# File 'lib/impex/file.rb', line 9

def file
  @file
end

#tableObject (readonly)

Returns the value of attribute table.



9
10
11
# File 'lib/impex/file.rb', line 9

def table
  @table
end