Sha256: 5aa0a01da2d457d7a1464b5e75316dc7786db6e988954639c11b0e63669dab28

Contents?: true

Size: 769 Bytes

Versions: 2

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

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

        property :continent, coerce: Immoscout::Models::Parts::GeoCode
        property :country, coerce: Immoscout::Models::Parts::GeoCode
        property :region, coerce: Immoscout::Models::Parts::GeoCode
        property :city, coerce: Immoscout::Models::Parts::GeoCode
        property :quarter, coerce: Immoscout::Models::Parts::GeoCode
        property :neighbourhood, coerce: Immoscout::Models::Parts::GeoCode
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
immoscout-1.8.1 lib/immoscout/models/parts/geo_hierarchy.rb
immoscout-1.8.0 lib/immoscout/models/parts/geo_hierarchy.rb