Sha256: 027741eb4d3c516d6b3a4412792e5569f598dc74619b4a63e20b605ebbabb5e5

Contents?: true

Size: 773 Bytes

Versions: 2

Compression:

Stored size: 773 Bytes

Contents

require_relative 'base'

module Amsi
  module Model
    class UnitType < Base
      decimal_attrs *%i[
        baths
        market_rent
        sec_min
        standard_renew
        mtm_renew
        other_renew
      ]

      integer_attrs *%i[
        bedrooms
        rooms
        sqftg
        unit_type_count
      ]

      string_attrs *%i[
        property_id
        unit_subtype
        unit_type
        unit_type_desc
      ]

      alias_method :count, :unit_type_count
      alias_method :description, :unit_type_desc
      alias_method :minimum_security_deposit, :sec_min
      alias_method :month_to_month_renew, :mtm_renew
      alias_method :sqft, :sqftg
      alias_method :subtype, :unit_subtype
      alias_method :type, :unit_type
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amsi-1.0.1 lib/amsi/model/unit_type.rb
amsi-1.0.0 lib/amsi/model/unit_type.rb