Class: NetSuite::Records::ItemFulfillmentPackageFedExList
- Inherits:
-
Object
- Object
- NetSuite::Records::ItemFulfillmentPackageFedExList
- Includes:
- Namespaces::TranSales, Support::Fields, Support::Records
- Defined in:
- lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ItemFulfillmentPackageFedExList
constructor
A new instance of ItemFulfillmentPackageFedExList.
- #package_fed_ex=(packages) ⇒ Object
- #packages ⇒ Object
- #to_record ⇒ Object
Methods included from Namespaces::TranSales
Methods included from Support::Records
#netsuite_type, netsuite_type, #record_type, #record_type_without_namespace, record_type_without_namespace, #refresh, #to_attributes!
Methods included from Namespaces::PlatformCore
Methods included from Support::Attributes
#attributes, #attributes=, #initialize_from_attributes_hash
Methods included from Support::Fields
Constructor Details
#initialize(attributes = {}) ⇒ ItemFulfillmentPackageFedExList
Returns a new instance of ItemFulfillmentPackageFedExList.
10 11 12 |
# File 'lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb', line 10 def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end |
Instance Method Details
#package_fed_ex=(packages) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb', line 14 def package_fed_ex=(packages) case packages when Hash self.packages << ItemFulfillmentPackageFedEx.new(packages) when Array packages.each { |package| self.packages << ItemFulfillmentPackageFedEx.new(package) } end end |
#packages ⇒ Object
23 24 25 |
# File 'lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb', line 23 def packages @packages ||= [] end |
#to_record ⇒ Object
27 28 29 |
# File 'lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb', line 27 def to_record { "#{record_namespace}:packageFedEx" => packages.map(&:to_record) } end |