Class: Gowalla::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Address

Returns a new instance of Address.



5
6
7
8
# File 'lib/gowalla/address.rb', line 5

def initialize(data={})
  @region = data['region']
  @locality = data['locality']
end

Instance Attribute Details

#localityObject

Returns the value of attribute locality.



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

def locality
  @locality
end

#regionObject

Returns the value of attribute region.



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

def region
  @region
end