Sha256: 90bdc80cb1f054a000a0c6740face8aa03487609b4cbcad63cd8d0ab50f66696
Contents?: true
Size: 616 Bytes
Versions: 44
Compression:
Stored size: 616 Bytes
Contents
module NetSuite module Records class CustomerAddressbookList include Namespaces::ListRel def initialize(attributes = {}) case attributes[:addressbook] when Hash addressbooks << CustomerAddressbook.new(attributes[:addressbook]) when Array attributes[:addressbook].each { |addressbook| addressbooks << CustomerAddressbook.new(addressbook) } end end def addressbooks @addressbooks ||= [] end def to_record { "#{record_namespace}:addressbook" => addressbooks.map(&:to_record) } end end end end
Version data entries
44 entries across 44 versions & 1 rubygems