Class: Gowalla::MapBound

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#eastObject

Returns the value of attribute east.



3
4
5
# File 'lib/gowalla/map_bound.rb', line 3

def east
  @east
end

#northObject

Returns the value of attribute north.



3
4
5
# File 'lib/gowalla/map_bound.rb', line 3

def north
  @north
end

#southObject

Returns the value of attribute south.



3
4
5
# File 'lib/gowalla/map_bound.rb', line 3

def south
  @south
end

#westObject

Returns the value of attribute west.



3
4
5
# File 'lib/gowalla/map_bound.rb', line 3

def west
  @west
end