Class: InvestingWishlist

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

Instance Method Summary collapse

Instance Method Details

#show_detailsObject



9
10
11
12
13
14
15
16
# File 'app/models/investing_wishlist.rb', line 9

def show_details
  {
    id: self.id,
    name: self.name,
    timeframe: self.timeframe,
    investment_type_id: InvestingWishlistType.where(investing_wishlist_id: self.id).pluck(:investment_type_id)
  }
end