Sha256: c75d79bb02bb40ca3d98409e6e2fafc25e5964b3a7a0b0ee636dd9046b281523
Contents?: true
Size: 636 Bytes
Versions: 32
Compression:
Stored size: 636 Bytes
Contents
module NetSuite module Records class VendorBillItemList include Support::Fields include Namespaces::TranPurch fields :item def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end def item=(items) case items when Hash self.items << VendorBillItem.new(items) when Array items.each { |item| self.items << VendorBillItem.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
32 entries across 32 versions & 1 rubygems