lib/physical/location.rb in physical-0.4.2 vs lib/physical/location.rb in physical-0.4.3
- old
+ new
@@ -16,11 +16,13 @@
:address3,
:phone,
:fax,
:email,
:address_type,
- :company_name
+ :company_name,
+ :latitude,
+ :longitude
def initialize(
name: nil,
company_name: nil,
address1: nil,
@@ -31,11 +33,13 @@
zip: nil,
country: nil,
phone: nil,
fax: nil,
email: nil,
- address_type: nil
+ address_type: nil,
+ latitude: nil,
+ longitude: nil
)
if country.is_a?(Carmen::Country)
@country = country
else
@@ -57,9 +61,11 @@
@zip = zip
@phone = phone
@fax = fax
@email = email
@address_type = address_type
+ @latitude = latitude
+ @longitude = longitude
end
def residential?
@address_type == 'residential'
end