Class: NetSuite::Records::RecordRefList
- Inherits:
-
Support::Sublist
- Object
- Support::Sublist
- NetSuite::Records::RecordRefList
- Includes:
- Namespaces::PlatformCore, Support::Records
- Defined in:
- lib/netsuite/records/record_ref_list.rb
Instance Method Summary collapse
Methods included from Namespaces::PlatformCore
Methods included from Support::Records
#netsuite_type, netsuite_type, #record_type, #record_type_without_namespace, record_type_without_namespace, #refresh, #to_attributes!
Methods included from Support::Attributes
#attributes, #attributes=, #initialize_from_attributes_hash
Methods inherited from Support::Sublist
#<<, inherited, #initialize, sublist
Methods included from Support::Fields
Constructor Details
This class inherits a constructor from NetSuite::Support::Sublist
Instance Method Details
#to_record ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/netsuite/records/record_ref_list.rb', line 9 def to_record { "#{record_namespace}:recordRef" => record_ref.map do |rr| rec = rr.to_record rec[:@internalId] = rr.internal_id if rr.internal_id rec[:@externalId] = rr.external_id if rr.external_id rec[:@type] = rr.type if rr.type rec end } end |