Class: Gowalla::Address
- Inherits:
-
Object
- Object
- Gowalla::Address
- Defined in:
- lib/gowalla/address.rb
Instance Attribute Summary collapse
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Address
constructor
A new instance of Address.
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
#locality ⇒ Object
Returns the value of attribute locality.
3 4 5 |
# File 'lib/gowalla/address.rb', line 3 def locality @locality end |
#region ⇒ Object
Returns the value of attribute region.
3 4 5 |
# File 'lib/gowalla/address.rb', line 3 def region @region end |