Sha256: efd4ce64ecaf37a80e40e289de2eaa9b010f80156f1d67ab3ba24b8800a38d7e

Contents?: true

Size: 815 Bytes

Versions: 6

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

require_relative '../base'
require_relative '../concerns/propertiable'
require_relative '../concerns/renderable'
require_relative 'geo_code'

module Immoscout
  module Models
    module Parts
      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

6 entries across 6 versions & 1 rubygems

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