Class: BuyingWishlist

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/buying_wishlist.rb

Instance Method Summary collapse

Instance Method Details

#show_detailsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/buying_wishlist.rb', line 9

def show_details
  {
    id:                   self.id,
    name:                 self.name,
    price_range_low:      self.price_range_low,
    price_range_high:     self.price_range_high,
    property_type_id:     self.property_type_id,
    beds_number:          self.beds_number,
    baths_number:         self.baths_number,
    square_footage_low:   self.square_footage_low,
    square_footage_high:  self.square_footage_high,
    built_year_low:       self.built_year_low,
    built_year_high:      self.built_year_high,
    lot_size:             self.lot_size,
    listing_type:         self.listing_type.to_s.split(";").join("; "),
    timeframe:            self.timeframe,
    condition:            self.condition,
    gagrage:              self.gagrage,
    pets:                 self.pets,
    view:                 self.view,
    pools:                self.pools
  }
end