Class: CaTissue::OrderDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/catissue/domain/order_details.rb

Overview

The OrderDetails domain class.

Instance Method Summary collapse

Constructor Details

#initializeOrderDetails

Returns a new instance of OrderDetails.



16
17
18
19
20
21
22
# File 'lib/catissue/domain/order_details.rb', line 16

def initialize
  super
  # @quirk JRuby order_items property method isnot accessible until respond_to? is called.
  respond_to?(:order_items)
  # @quirk caTissue work around caTissue Bug #64
  self.order_items ||= Java::JavaUtil::LinkedHashSet.new
end

Instance Method Details

#order_itemsJava::JavaUtil::Set

Returns the items.

Returns:

  • (Java::JavaUtil::Set)

    the items



10
11
12
# File 'lib/catissue/domain/order_details.rb', line 10

def order_items
  getOrderItemCollection or (self.order_items = Java::JavaUtil::LinkedHashSet.new)
end