Class: ActiveNetsuite::RecordRef

Inherits:
BaseRef
  • Object
show all
Defined in:
lib/activenetsuite/core/record_ref.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



11
12
13
14
15
# File 'lib/activenetsuite/core/record_ref.rb', line 11

def ==(other)
  self.type == other.type &&
    self.internal_id == other.internal_id &&
    self.external_id == other.external_id
end

#deleteObject



24
25
26
# File 'lib/activenetsuite/core/record_ref.rb', line 24

def delete
  Record.delete([self])
end

#recordObject



17
18
19
20
21
22
# File 'lib/activenetsuite/core/record_ref.rb', line 17

def record
  rec = record_class.new
  rec.internal_id = internal_id
  rec.external_id = external_id
  rec
end