Class: Tairu::Coordinate
- Inherits:
-
Object
- Object
- Tairu::Coordinate
- Defined in:
- lib/tairu/coordinate.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#row ⇒ Object
Returns the value of attribute row.
-
#zoom ⇒ Object
Returns the value of attribute zoom.
Instance Method Summary collapse
-
#initialize(row, column, zoom) ⇒ Coordinate
constructor
A new instance of Coordinate.
Constructor Details
#initialize(row, column, zoom) ⇒ Coordinate
Returns a new instance of Coordinate.
5 6 7 8 9 |
# File 'lib/tairu/coordinate.rb', line 5 def initialize(row, column, zoom) @row = Integer(row) @column = Integer(column) @zoom = Integer(zoom) end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
3 4 5 |
# File 'lib/tairu/coordinate.rb', line 3 def column @column end |
#row ⇒ Object
Returns the value of attribute row.
3 4 5 |
# File 'lib/tairu/coordinate.rb', line 3 def row @row end |
#zoom ⇒ Object
Returns the value of attribute zoom.
3 4 5 |
# File 'lib/tairu/coordinate.rb', line 3 def zoom @zoom end |