Class: Csv2hash::DataWrapper
- Inherits:
-
Object
- Object
- Csv2hash::DataWrapper
- Defined in:
- lib/csv2hash/data_wrapper.rb
Instance Attribute Summary (collapse)
-
- (Object) data
Returns the value of attribute data.
-
- (Object) errors
Returns the value of attribute errors.
-
- (Object) valid
Returns the value of attribute valid.
Instance Method Summary (collapse)
-
- (DataWrapper) initialize
constructor
A new instance of DataWrapper.
- - (Boolean) valid?
Constructor Details
- (DataWrapper) initialize
Returns a new instance of DataWrapper
6 7 8 9 |
# File 'lib/csv2hash/data_wrapper.rb', line 6 def initialize self.valid = true self.data, self.errors = [], [] end |
Instance Attribute Details
- (Object) data
Returns the value of attribute data
4 5 6 |
# File 'lib/csv2hash/data_wrapper.rb', line 4 def data @data end |
- (Object) errors
Returns the value of attribute errors
4 5 6 |
# File 'lib/csv2hash/data_wrapper.rb', line 4 def errors @errors end |
- (Object) valid
Returns the value of attribute valid
4 5 6 |
# File 'lib/csv2hash/data_wrapper.rb', line 4 def valid @valid end |
Instance Method Details
- (Boolean) valid?
11 |
# File 'lib/csv2hash/data_wrapper.rb', line 11 def valid?() valid ; end |