Method: NetSuite::Support::Sublist#to_record
- Defined in:
- lib/netsuite/support/sublist.rb
#to_record ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/netsuite/support/sublist.rb', line 37 def to_record rec = { "#{record_namespace}:#{sublist_key.to_s.lower_camelcase}" => send(self.sublist_key).map(&:to_record) } if !replace_all.nil? rec["#{record_namespace}:replaceAll"] = !!replace_all end rec end |