Method: NetSuite::Records::ContactAddressbook#initialize
- Defined in:
- lib/netsuite/records/contact_addressbook.rb
#initialize(attributes_or_record = {}) ⇒ ContactAddressbook
Returns a new instance of ContactAddressbook.
23 24 25 26 27 28 29 30 31 |
# File 'lib/netsuite/records/contact_addressbook.rb', line 23 def initialize(attributes_or_record = {}) case attributes_or_record when self.class initialize_from_record(attributes_or_record) when Hash attributes_or_record = attributes_or_record[:addressbook] if attributes_or_record[:addressbook] initialize_from_attributes_hash(attributes_or_record) end end |