Class: GeoRuby::Shp4r::Dbf::Field::FauxTable

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

Overview

Shim class to address backward compatibility issues with DBF >= 2.0.13

Previous signature was (name, type, length, decimal, version, encoding) v2.0.13 and later signature is (table, name, type, length, decimal) with table expected to provide version and encoding

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version, encoding) ⇒ FauxTable

Returns a new instance of FauxTable.



35
36
37
# File 'lib/geo_ruby/shp4r/dbf.rb', line 35

def initialize(version, encoding)
  @version, @encoding = version, encoding
end

Instance Attribute Details

#encodingObject (readonly)

Returns the value of attribute encoding.



33
34
35
# File 'lib/geo_ruby/shp4r/dbf.rb', line 33

def encoding
  @encoding
end

#versionObject (readonly)

Returns the value of attribute version.



33
34
35
# File 'lib/geo_ruby/shp4r/dbf.rb', line 33

def version
  @version
end