Class: Kladr::DBF::Record
- Inherits:
-
Object
- Object
- Kladr::DBF::Record
- Defined in:
- lib/dbf/dbf/record.rb
Constant Summary collapse
- @@accessors_defined =
false
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(table) ⇒ Record
constructor
A new instance of Record.
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/dbf/dbf/record.rb', line 4 def attributes @attributes end |