Class: AtlasEngine::PostAddress

Inherits:
ApplicationRecord show all
Extended by:
T::Sig
Defined in:
app/models/atlas_engine/post_address.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/atlas_engine/post_address.rb', line 13

def to_h
  {
    source_id: source_id,
    locale: locale,
    country_code: country_code,
    province_code: province_code,
    region1: region1,
    region2: region2,
    region3: region3,
    region4: region4,
    city: city,
    suburb: suburb,
    zip: zip,
    street: street,
    building_name: building_name,
    latitude: latitude,
    longitude: longitude,
  }.compact
end