Class: Dimension

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geobox) ⇒ Dimension

Returns a new instance of Dimension.



31
32
33
34
# File 'lib/geohash.rb', line 31

def initialize(geobox)
  @height = geobox['height']
  @width  = geobox['width']
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



29
30
31
# File 'lib/geohash.rb', line 29

def height
  @height
end

#widthObject

Returns the value of attribute width.



29
30
31
# File 'lib/geohash.rb', line 29

def width
  @width
end