Method: NetSuite::Records::CustomerRefundApplyList#initialize
- Defined in:
- lib/netsuite/records/customer_refund_apply_list.rb
#initialize(attributes = {}) ⇒ CustomerRefundApplyList
Returns a new instance of CustomerRefundApplyList.
10 11 12 13 14 15 16 17 |
# File 'lib/netsuite/records/customer_refund_apply_list.rb', line 10 def initialize(attributes = {}) case attributes[:apply] when Hash applies << CustomerRefundApply.new(attributes[:apply]) when Array attributes[:apply].each { |apply| applies << CustomerRefundApply.new(apply) } end end |