Class: Csv2hash::DataWrapper
- Inherits:
-
Object
- Object
- Csv2hash::DataWrapper
- Defined in:
- lib/csv2hash/data_wrapper.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize ⇒ DataWrapper
constructor
A new instance of DataWrapper.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ DataWrapper
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
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/csv2hash/data_wrapper.rb', line 4 def data @data end |
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/csv2hash/data_wrapper.rb', line 4 def errors @errors end |
#valid ⇒ Object
Returns the value of attribute valid.
4 5 6 |
# File 'lib/csv2hash/data_wrapper.rb', line 4 def valid @valid end |
Instance Method Details
#valid? ⇒ Boolean
11 |
# File 'lib/csv2hash/data_wrapper.rb', line 11 def valid?() valid ; end |