Class: Impex::File
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(file, config = {}) ⇒ File
constructor
A new instance of File.
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
#file ⇒ Object (readonly)
Returns the value of attribute file.
9 10 11 |
# File 'lib/impex/file.rb', line 9 def file @file end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
9 10 11 |
# File 'lib/impex/file.rb', line 9 def table @table end |