Class: DBF::ColumnType::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column) ⇒ Base

Returns a new instance of Base.

Parameters:

  • decimal (Integer)
  • encoding (String, Encoding)


8
9
10
11
# File 'lib/dbf/column_type.rb', line 8

def initialize(column)
  @decimal = column.decimal
  @encoding = column.encoding
end

Instance Attribute Details

#decimalObject (readonly)

Returns the value of attribute decimal.



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

def decimal
  @decimal
end

#encodingObject (readonly)

Returns the value of attribute encoding.



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

def encoding
  @encoding
end