Class: NetSuite::Records::ItemFulfillmentPackageUsps

Inherits:
Object
  • Object
show all
Includes:
Namespaces::TranSales, Support::Fields, Support::Records
Defined in:
lib/netsuite/records/item_fulfillment_package_usps.rb

Instance Method Summary collapse

Methods included from Namespaces::TranSales

#record_namespace

Methods included from Support::Records

#netsuite_type, netsuite_type, #record_type, #record_type_without_namespace, record_type_without_namespace, #refresh, #to_attributes!, #to_record

Methods included from Namespaces::PlatformCore

#record_namespace

Methods included from Support::Attributes

#attributes, #attributes=, #initialize_from_attributes_hash

Methods included from Support::Fields

included

Constructor Details

#initialize(attributes_or_record = {}) ⇒ ItemFulfillmentPackageUsps

Returns a new instance of ItemFulfillmentPackageUsps.



12
13
14
15
16
17
18
19
# File 'lib/netsuite/records/item_fulfillment_package_usps.rb', line 12

def initialize(attributes_or_record = {})
  case attributes_or_record
  when Hash
    initialize_from_attributes_hash(attributes_or_record)
  when self.class
    initialize_from_record(attributes_or_record)
  end
end

Instance Method Details

#initialize_from_record(record) ⇒ Object



21
22
23
# File 'lib/netsuite/records/item_fulfillment_package_usps.rb', line 21

def initialize_from_record(record)
  self.attributes = record.send(:attributes)
end