Sha256: 03e2d9972e65cc894c8521d859f993ac85414f35413ad0ac52305a0223917b2a

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

require_relative '../base'
require_relative '../parts/coordinate'
require_relative '../parts/geo_hierarchy'
require_relative '../parts/international_country_region'
require_relative '../concerns/propertiable'
require_relative '../concerns/renderable'

module Immoscout
  module Models
    module Parts
      # Shared address-related property definitions.
      # See: https://bit.ly/3CSGnmN
      class Address < Base
        include Immoscout::Models::Concerns::Renderable
        include Immoscout::Models::Concerns::Propertiable

        property :street
        property :house_number
        property :postcode
        property :city
        property :wgs84_coordinate, coerce: Immoscout::Models::Parts::Coordinate
        property :international_country_region,
                 coerce: Immoscout::Models::Parts::InternationalCountryRegion
        property :geo_hierarchy,
                 coerce: Immoscout::Models::Parts::GeoHierarchy,
                 readonly: true
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
immoscout-1.6.5 lib/immoscout/models/parts/address.rb
immoscout-1.6.4 lib/immoscout/models/parts/address.rb
immoscout-1.6.3 lib/immoscout/models/parts/address.rb
immoscout-1.6.2 lib/immoscout/models/parts/address.rb
immoscout-1.6.1 lib/immoscout/models/parts/address.rb
immoscout-1.6.0 lib/immoscout/models/parts/address.rb
immoscout-1.5.0 lib/immoscout/models/parts/address.rb
immoscout-1.4.0 lib/immoscout/models/parts/address.rb