Class: GBTiles::GBR::TileSet::Objects::Producer

Inherits:
GBTiles::GBR::TileSet::Object show all
Defined in:
lib/gbtiles/gbr/tile_set/objects/producer.rb

Instance Attribute Summary collapse

Attributes inherited from GBTiles::GBR::TileSet::Object

#object_id, #object_type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProducer

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

#infoObject

Returns the value of attribute info.



9
10
11
# File 'lib/gbtiles/gbr/tile_set/objects/producer.rb', line 9

def info
  @info
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/gbtiles/gbr/tile_set/objects/producer.rb', line 7

def name
  @name
end

#versionObject

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