Module: Rubillow::Models::Addressable
- Included in:
- Posting, UpdatedPropertyDetails, Zestimateable
- Defined in:
- lib/rubillow/models/addressable.rb
Overview
Common data for responses containing address information.
Instance Attribute Summary collapse
-
#address ⇒ Hash
Address information (all are strings, keys are: :street, :city, :state, :zipcode, :latitude, :longitude).
Instance Method Summary collapse
-
#full_address ⇒ String
get the full, formatted address.
Instance Attribute Details
#address ⇒ Hash
Returns Address information (all are strings, keys are: :street, :city, :state, :zipcode, :latitude, :longitude).
11 12 13 |
# File 'lib/rubillow/models/addressable.rb', line 11 def address @address end |
Instance Method Details
#full_address ⇒ String
get the full, formatted address
16 17 18 |
# File 'lib/rubillow/models/addressable.rb', line 16 def full_address @address[:street] + ', ' + @address[:city] + ', ' + @address[:state] + ' ' + @address[:zipcode] end |