Class: Csv2hash::DataWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/csv2hash/data_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataWrapper

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

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/csv2hash/data_wrapper.rb', line 4

def data
  @data
end

#errorsObject

Returns the value of attribute errors.



4
5
6
# File 'lib/csv2hash/data_wrapper.rb', line 4

def errors
  @errors
end

#validObject

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

Returns:

  • (Boolean)


11
# File 'lib/csv2hash/data_wrapper.rb', line 11

def valid?() valid ; end