Class: GBTiles::GBM::Map::Objects::Producer
- Inherits:
-
GBTiles::GBM::Map::Object
- Object
- GBTiles::GBM::Map::Object
- GBTiles::GBM::Map::Objects::Producer
- Defined in:
- lib/gbtiles/gbm/map/objects/producer.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
Returns the value of attribute info.
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from GBTiles::GBM::Map::Object
#master_id, #object_id, #object_type
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Producer
constructor
A new instance of Producer.
Constructor Details
#initialize ⇒ Producer
Returns a new instance of Producer.
11 12 13 |
# File 'lib/gbtiles/gbm/map/objects/producer.rb', line 11 def initialize super GBTiles::GBM::Map::OBJECT_TYPE[:producer] end |
Instance Attribute Details
#info ⇒ Object
Returns the value of attribute info.
9 10 11 |
# File 'lib/gbtiles/gbm/map/objects/producer.rb', line 9 def info @info end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/gbtiles/gbm/map/objects/producer.rb', line 7 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/gbtiles/gbm/map/objects/producer.rb', line 8 def version @version end |
Class Method Details
.initFromBitString(src) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/gbtiles/gbm/map/objects/producer.rb', line 15 def self.initFromBitString src object = GBTiles::GBM::Map::Objects::Producer.new object.name = GBTiles::DataType.string!(src, 128) object.version = GBTiles::DataType.string!(src, 10) object.info = GBTiles::DataType.string!(src, 128) object end |