Class: Kladr::DBF::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/dbf/dbf/record.rb

Constant Summary collapse

@@accessors_defined =
false

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table) ⇒ Record

Returns a new instance of Record.



8
9
10
11
12
13
14
# File 'lib/dbf/dbf/record.rb', line 8

def initialize(table)
  @table, @data, @memo = table, table.data, table.memo
  @attributes = {}
  initialize_values(table.columns)
  define_accessors
  self
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



4
5
6
# File 'lib/dbf/dbf/record.rb', line 4

def attributes
  @attributes
end