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

- (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?

Returns:

  • (Boolean)


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

def valid?() valid ; end