Class: GBTiles::GBR::TileSet::Objects::Producer
- Inherits:
-
GBTiles::GBR::TileSet::Object
- Object
- GBTiles::GBR::TileSet::Object
- GBTiles::GBR::TileSet::Objects::Producer
- Defined in:
- lib/gbtiles/gbr/tile_set/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::GBR::TileSet::Object
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/gbr/tile_set/objects/producer.rb', line 11 def initialize super GBTiles::GBR::TileSet::OBJECT_TYPE[:producer] end |
Instance Attribute Details
#info ⇒ Object
Returns the value of attribute info.
9 10 11 |
# File 'lib/gbtiles/gbr/tile_set/objects/producer.rb', line 9 def info @info end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/gbtiles/gbr/tile_set/objects/producer.rb', line 7 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/gbtiles/gbr/tile_set/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/gbr/tile_set/objects/producer.rb', line 15 def self.initFromBitString src object = GBTiles::GBR::TileSet::Objects::Producer.new object.name = GBTiles::DataType.string!(src, 30) object.version = GBTiles::DataType.string!(src, 10) object.info = GBTiles::DataType.string!(src, 80) object end |