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

Instance Method Summary collapse

Instance Attribute Details

#addressHash

Returns Address information (all are strings, keys are: :street, :city, :state, :zipcode, :latitude, :longitude).

Examples:

puts address[:street]
puts address[:city]

Returns:

  • (Hash)

    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_addressString

get the full, formatted address

Returns:

  • (String)

    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