Method: NetSuite::Records::Account#initialize

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

#initialize(attributes = {}) ⇒ Account

Returns a new instance of Account.



23
24
25
26
27
# File 'lib/netsuite/records/account.rb', line 23

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