Sha256: b8b01a0f5d3c82f8957a8d44f0f1ed52092d05d5b243c7f697e8ceff6efdf20a

Contents?: true

Size: 945 Bytes

Versions: 5

Compression:

Stored size: 945 Bytes

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
      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

5 entries across 5 versions & 1 rubygems

Version Path
immoscout-1.3.2 lib/immoscout/models/parts/address.rb
immoscout-1.3.1 lib/immoscout/models/parts/address.rb
immoscout-1.3.0 lib/immoscout/models/parts/address.rb
immoscout-1.2.0 lib/immoscout/models/parts/address.rb
immoscout-1.1.0 lib/immoscout/models/parts/address.rb