Sha256: 425e9e676dc478ae710696c0ee5637f05da29ea16145490d093a67e258df291c

Contents?: true

Size: 585 Bytes

Versions: 19

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

module PriceHubble
  # The nested PriceHubble property condition object.
  #
  # @see https://docs.pricehubble.com/#types-property
  class PropertyConditions < BaseEntity
    # Mapped and tracked attributes
    tracked_attr :bathrooms, :kitchen, :flooring, :windows, :masonry

    # Define attribute types for casting
    with_options(values: Property::CONDITIONS) do
      typed_attr :bathrooms, :enum
      typed_attr :kitchen, :enum
      typed_attr :flooring, :enum
      typed_attr :windows, :enum
      typed_attr :masonry, :enum
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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