Method: NetSuite::Records::DiscountItem#initialize

Defined in:
lib/netsuite/records/discount_item.rb

#initialize(attributes = {}) ⇒ DiscountItem

Returns a new instance of DiscountItem.



25
26
27
28
29
# File 'lib/netsuite/records/discount_item.rb', line 25

def initialize(attributes = {})
  @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
  @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
  initialize_from_attributes_hash(attributes)
end