Method: Propertyware::SaveBuilding#hash

Defined in:
lib/propertyware/models/save_building.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



530
531
532
# File 'lib/propertyware/models/save_building.rb', line 530

def hash
  [abbreviation, address, allocation_method, available_date, category, count_unit, description, floor_number, management_fee_type, management_flat_fee, marketing_name, multi_unit, name, naming, neighborhood, number_bathrooms, number_bedrooms, number_floors, numbered, other_tenant_charges, parcel_number, pets_allowed, portfolio_id, posting_title, property_type, published_for_rent, rentable, search_tag, short_description, target_deposit, target_rent, total_area, type, year_built_as_string].hash
end