Sha256: edb84bc74a33760314ce7aab94155234e9a0aa028cf71c790ae562ab9d37534c

Contents?: true

Size: 865 Bytes

Versions: 15

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module PriceHubble
  # The common PriceHubble property type object.
  #
  # @see https://docs.pricehubble.com/#types-propertytype
  class PropertyType < BaseEntity
    # Mapped and tracked attributes
    tracked_attr :code, :subcode

    # Define attribute types for casting
    typed_attr :code, :enum, values: %i[apartment house]
    typed_attr :subcode, :enum, values: %i[apartment_normal
                                           apartment_maisonette apartment_attic
                                           apartment_penthouse
                                           apartment_terraced apartment_studio
                                           house_detached house_semi_detached
                                           house_row_corner house_row_middle
                                           house_farm]
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pricehubble-1.3.0 lib/price_hubble/entity/property_type.rb
pricehubble-1.2.5 lib/price_hubble/entity/property_type.rb
pricehubble-1.2.4 lib/price_hubble/entity/property_type.rb
pricehubble-1.2.3 lib/price_hubble/entity/property_type.rb
pricehubble-1.2.2 lib/price_hubble/entity/property_type.rb
pricehubble-1.2.1 lib/price_hubble/entity/property_type.rb
pricehubble-1.2.0 lib/price_hubble/entity/property_type.rb
pricehubble-1.1.0 lib/pricehubble/entity/property_type.rb
pricehubble-1.0.0 lib/pricehubble/entity/property_type.rb
pricehubble-0.4.2 lib/pricehubble/entity/property_type.rb
pricehubble-0.4.1 lib/pricehubble/entity/property_type.rb
pricehubble-0.4.0 lib/pricehubble/entity/property_type.rb
pricehubble-0.3.0 lib/pricehubble/entity/property_type.rb
pricehubble-0.2.0 lib/pricehubble/entity/property_type.rb
pricehubble-0.1.0 lib/pricehubble/entity/property_type.rb