Class: NetSuite::Records::Promotions
- Inherits:
-
Object
- Object
- NetSuite::Records::Promotions
- Defined in:
- lib/netsuite/records/promotions.rb
Instance Method Summary collapse
-
#initialize(attributes_or_record = {}) ⇒ Promotions
constructor
A new instance of Promotions.
- #initialize_from_record(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!, #to_record
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_or_record = {}) ⇒ Promotions
Returns a new instance of Promotions.
11 12 13 14 15 16 17 18 |
# File 'lib/netsuite/records/promotions.rb', line 11 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
20 21 22 |
# File 'lib/netsuite/records/promotions.rb', line 20 def initialize_from_record(record) self.attributes = record.send(:attributes) end |