Sha256: 2dc02868c25eb0141355c13d481b8304204c7fba16a2dc9e88a5127d9af518a8
Contents?: true
Size: 636 Bytes
Versions: 37
Compression:
Stored size: 636 Bytes
Contents
module NetSuite module Records class CashRefundItemList include Support::Fields include Namespaces::TranCust fields :item def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end def item=(items) case items when Hash self.items << CashRefundItem.new(items) when Array items.each { |item| self.items << CashRefundItem.new(item) } end end def items @items ||= [] end def to_record { "#{record_namespace}:item" => items.map(&:to_record) } end end end end
Version data entries
37 entries across 37 versions & 1 rubygems