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