Sha256: b7df15ca34dcd89ec1de8e14dc24ef957e4adbe5501dae431a467c51a3826503
Contents?: true
Size: 899 Bytes
Versions: 55
Compression:
Stored size: 899 Bytes
Contents
module NetSuite module Records class InventoryAssignmentList include Support::Records include Support::Fields include Namespaces::PlatformCommon fields :replace_all, :inventory_assignment def initialize(attrs = {}) initialize_from_attributes_hash(attrs) end def inventory_assignment=(items) case items when Hash self.inventory_assignment << InventoryAssignment.new(items) when Array items.each { |ref| self.inventory_assignment << InventoryAssignment.new(ref) } end end def inventory_assignment @inventory_assignment ||= [] end def to_record rec = { "#{record_namespace}:inventoryAssignment" => inventory_assignment.map(&:to_record) } rec[:@replaceAll] = self.replace_all if !self.replace_all.nil? rec end end end end
Version data entries
55 entries across 55 versions & 1 rubygems