Class: NetSuite::Records::CustomerRefundApplyList
- Inherits:
-
Object
- Object
- NetSuite::Records::CustomerRefundApplyList
- Includes:
- Namespaces::TranCust
- Defined in:
- lib/netsuite/records/customer_refund_apply_list.rb
Instance Method Summary collapse
- #applies ⇒ Object
-
#initialize(attributes = {}) ⇒ CustomerRefundApplyList
constructor
A new instance of CustomerRefundApplyList.
- #to_record ⇒ Object
Methods included from Namespaces::TranCust
Constructor Details
#initialize(attributes = {}) ⇒ CustomerRefundApplyList
Returns a new instance of CustomerRefundApplyList.
6 7 8 9 10 11 12 13 |
# File 'lib/netsuite/records/customer_refund_apply_list.rb', line 6 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 |
Instance Method Details
#applies ⇒ Object
15 16 17 |
# File 'lib/netsuite/records/customer_refund_apply_list.rb', line 15 def applies @applies ||= [] end |
#to_record ⇒ Object
19 20 21 22 23 |
# File 'lib/netsuite/records/customer_refund_apply_list.rb', line 19 def to_record applies.map do |apply| { "#{record_namespace}:apply" => apply.to_record } end end |