Module: NetSuite::Support::RecordRefs::ClassMethods

Defined in:
lib/netsuite/support/record_refs.rb

Instance Method Summary collapse

Instance Method Details

#record_ref(name) ⇒ Object



21
22
23
24
# File 'lib/netsuite/support/record_refs.rb', line 21

def record_ref(name)
  record_refs << name
  field name, NetSuite::Records::RecordRef
end

#record_refs(*names) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/netsuite/support/record_refs.rb', line 11

def record_refs(*names)
  if names.empty?
    @record_refs ||= Set.new
  else
    names.each do |name|
      record_ref name
    end
  end
end