Class: Tairu::Tile
- Inherits:
-
Object
- Object
- Tairu::Tile
- Defined in:
- lib/tairu/tile.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
Instance Method Summary collapse
-
#initialize(data, mime_type) ⇒ Tile
constructor
A new instance of Tile.
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
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/tairu/tile.rb', line 3 def data @data end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
3 4 5 |
# File 'lib/tairu/tile.rb', line 3 def mime_type @mime_type end |