Class: NetSuite::Records::DepositPaymentList
Instance Method Summary
collapse
#record_namespace
included
#attributes, #attributes=, #initialize_from_attributes_hash
Constructor Details
Returns a new instance of DepositPaymentList.
9
10
11
|
# File 'lib/netsuite/records/deposit_payment_list.rb', line 9
def initialize(attributes = {})
initialize_from_attributes_hash(attributes)
end
|
Instance Method Details
#payment=(payments) ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'lib/netsuite/records/deposit_payment_list.rb', line 13
def payment=(payments)
case payments
when Hash
self.payments << DepositPayment.new(payments)
when Array
payments.each { |p| self.payments << DepositPayment.new(p) }
end
end
|
#payments ⇒ Object
22
23
24
|
# File 'lib/netsuite/records/deposit_payment_list.rb', line 22
def payments
@payments ||= []
end
|
#to_record ⇒ Object
26
27
28
|
# File 'lib/netsuite/records/deposit_payment_list.rb', line 26
def to_record
{ "#{record_namespace}:depositPayment" => payments.map(&:to_record) }
end
|