Class: Tairu::Coordinate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject

Returns the value of attribute column.



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

def column
  @column
end

#rowObject

Returns the value of attribute row.



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

def row
  @row
end

#zoomObject

Returns the value of attribute zoom.



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

def zoom
  @zoom
end