Class: Tairu::Tile

Inherits:
Object
  • Object
show all
Defined in:
lib/tairu/tile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, mime_type) ⇒ Tile

Returns a new instance of Tile.



5
6
7
8
# File 'lib/tairu/tile.rb', line 5

def initialize(data, mime_type)
  @data = data
  @mime_type = mime_type
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/tairu/tile.rb', line 3

def data
  @data
end

#mime_typeObject

Returns the value of attribute mime_type.



3
4
5
# File 'lib/tairu/tile.rb', line 3

def mime_type
  @mime_type
end