Class: Mapstatic::Tile
- Inherits:
-
Object
- Object
- Mapstatic::Tile
- Defined in:
- lib/mapstatic/tile.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#zoom ⇒ Object
Returns the value of attribute zoom.
Instance Method Summary collapse
-
#initialize(x, y, zoom) ⇒ Tile
constructor
A new instance of Tile.
Constructor Details
#initialize(x, y, zoom) ⇒ Tile
Returns a new instance of Tile.
6 7 8 9 10 |
# File 'lib/mapstatic/tile.rb', line 6 def initialize(x,y,zoom) @x = x.floor @y = y.floor @zoom = zoom end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
4 5 6 |
# File 'lib/mapstatic/tile.rb', line 4 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
4 5 6 |
# File 'lib/mapstatic/tile.rb', line 4 def y @y end |
#zoom ⇒ Object
Returns the value of attribute zoom.
4 5 6 |
# File 'lib/mapstatic/tile.rb', line 4 def zoom @zoom end |