lib/physical/location.rb in physical-0.4.8 vs lib/physical/location.rb in physical-0.4.9

- old
+ new

@@ -2,10 +2,12 @@ require 'carmen' module Physical class Location + include PropertyReaders + ADDRESS_TYPES = %w(residential commercial po_box).freeze attr_reader :country, :zip, :region, @@ -18,11 +20,12 @@ :fax, :email, :address_type, :company_name, :latitude, - :longitude + :longitude, + :properties def initialize( name: nil, company_name: nil, address1: nil, @@ -35,11 +38,12 @@ phone: nil, fax: nil, email: nil, address_type: nil, latitude: nil, - longitude: nil + longitude: nil, + properties: {} ) @country = if country.is_a?(Carmen::Country) country else @@ -63,9 +67,10 @@ @fax = fax @email = email @address_type = address_type @latitude = latitude @longitude = longitude + @properties = properties end def residential? @address_type == 'residential' end