Class: NetSuite::Records::CashSaleItem
- Inherits:
-
Object
- Object
- NetSuite::Records::CashSaleItem
- Defined in:
- lib/netsuite/records/cash_sale_item.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CashSaleItem
constructor
A new instance of CashSaleItem.
- #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::RecordRefs
Methods included from Support::Fields
Constructor Details
#initialize(attributes = {}) ⇒ CashSaleItem
Returns a new instance of CashSaleItem.
26 27 28 |
# File 'lib/netsuite/records/cash_sale_item.rb', line 26 def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end |
Instance Method Details
#to_record ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/netsuite/records/cash_sale_item.rb', line 30 def to_record rec = super if rec["#{record_namespace}:customFieldList"] rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList") end rec end |