Sha256: 54222851831fc050b84fc7cba1c12ac6abb411f3399c39b6d3f5774c33c34a97
Contents?: true
Size: 883 Bytes
Versions: 25
Compression:
Stored size: 883 Bytes
Contents
module NetSuite module Records class ItemFulfillmentPackageList < Support::Sublist include Namespaces::TranSales sublist :package, ItemFulfillmentPackage def initialize(attributes = {}) if attributes.keys != [:package] && attributes.first transformed_attrs = {} object = attributes.first.last case object when Hash object.each do |k, v| transformed_attrs.merge!(k[0..-5].to_sym => v) end when Array object.each do |hash| hash.each do |k, v| transformed_attrs.merge!(k[0..-5].to_sym => v) end end end attributes = { package: transformed_attrs } end initialize_from_attributes_hash(attributes) end alias :packages :package end end end
Version data entries
25 entries across 25 versions & 1 rubygems