Class: Gowalla::MapBound
- Inherits:
-
Object
- Object
- Gowalla::MapBound
- Defined in:
- lib/gowalla/map_bound.rb
Instance Attribute Summary collapse
-
#east ⇒ Object
Returns the value of attribute east.
-
#north ⇒ Object
Returns the value of attribute north.
-
#south ⇒ Object
Returns the value of attribute south.
-
#west ⇒ Object
Returns the value of attribute west.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ MapBound
constructor
A new instance of MapBound.
Constructor Details
#initialize(data = {}) ⇒ MapBound
Returns a new instance of MapBound.
5 6 7 8 9 10 |
# File 'lib/gowalla/map_bound.rb', line 5 def initialize(data={}) @north = data['north'] @south = data['south'] @east = data['east'] @west = data['west'] end |
Instance Attribute Details
#east ⇒ Object
Returns the value of attribute east.
3 4 5 |
# File 'lib/gowalla/map_bound.rb', line 3 def east @east end |
#north ⇒ Object
Returns the value of attribute north.
3 4 5 |
# File 'lib/gowalla/map_bound.rb', line 3 def north @north end |
#south ⇒ Object
Returns the value of attribute south.
3 4 5 |
# File 'lib/gowalla/map_bound.rb', line 3 def south @south end |
#west ⇒ Object
Returns the value of attribute west.
3 4 5 |
# File 'lib/gowalla/map_bound.rb', line 3 def west @west end |