Class: Dimension
- Inherits:
-
Object
- Object
- Dimension
- Defined in:
- lib/geohash.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(geobox) ⇒ Dimension
constructor
A new instance of Dimension.
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
#height ⇒ Object
Returns the value of attribute height.
29 30 31 |
# File 'lib/geohash.rb', line 29 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
29 30 31 |
# File 'lib/geohash.rb', line 29 def width @width end |