Class CartItem
In: app/models/cart_item.rb
Parent: Object

************************************************************************/

  • SOLUNAS BOOKING ENGINE */
  • ====================== */
  • */
  • Copyright © 2006 by Marc Isemann */
  • sourceforge.net/projects/solunas */
  • */
  • This program is free software. You can redistribute it and/or modify */
  • it under the terms of the GNU General Public License as published by */
  • the Free Software Foundation; either version 2 of the License. */

************************************************************************/

Methods

new  

Attributes

addons  [R] 
adults  [R] 
arrival  [R] 
children  [R] 
departure  [R] 
item_id  [R] 
room  [R] 
total  [R] 

Public Class methods

Set the Cart Line Item Addons are serialized and stored as objects

[Source]

    # File app/models/cart_item.rb, line 19
19:                 def initialize(item_id, addon, room, total, arrival, departure, adults, children)
20:                                 @item_id = item_id
21:                                 @room = room
22:                                 @total = total
23:                                 @arrival = arrival
24:                                 @departure = departure
25:                                 @adults = adults
26:                                 @children = children
27:                                 @addons = addon
28:                                 
29:                 end

[Validate]