class ActiveNetsuite::RecordRef

{urn:core_2013_2.platform.webservices.netsuite.com}RecordRef

name - SOAP::SOAPString
xmlattr_internalId - SOAP::SOAPString
xmlattr_externalId - SOAP::SOAPString
xmlattr_type - SOAP::SOAPString

Constants

AttrExternalId
AttrInternalId
AttrType

Attributes

name[RW]

Public Class Methods

new(name = nil) click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46191
def initialize(name = nil)
  @name = name
  @__xmlattr = {}
end

Public Instance Methods

==(other) click to toggle source
# 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
__xmlattr() click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46163
def __xmlattr
  @__xmlattr ||= {}
end
delete() click to toggle source
# File lib/activenetsuite/core/record_ref.rb, line 24
def delete
  Record.delete([self])
end
external_id()
Alias for: xmlattr_externalId
external_id=(value)
Alias for: xmlattr_externalId=
internal_id()
Alias for: xmlattr_internalId
internal_id=(value)
Alias for: xmlattr_internalId=
record() click to toggle source
# 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
type()
Alias for: xmlattr_type
type=(value)
Alias for: xmlattr_type=
xmlattr_externalId() click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46175
def xmlattr_externalId
  __xmlattr[AttrExternalId]
end
Also aliased as: external_id
xmlattr_externalId=(value) click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46179
def xmlattr_externalId=(value)
  __xmlattr[AttrExternalId] = value
end
Also aliased as: external_id=
xmlattr_internalId() click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46167
def xmlattr_internalId
  __xmlattr[AttrInternalId]
end
Also aliased as: internal_id
xmlattr_internalId=(value) click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46171
def xmlattr_internalId=(value)
  __xmlattr[AttrInternalId] = value
end
Also aliased as: internal_id=
xmlattr_type() click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46183
def xmlattr_type
  __xmlattr[AttrType]
end
Also aliased as: type
xmlattr_type=(value) click to toggle source
# File lib/activenetsuite/soap/default.rb, line 46187
def xmlattr_type=(value)
  __xmlattr[AttrType] = value
end
Also aliased as: type=

Private Instance Methods

record_class() click to toggle source
# File lib/activenetsuite/core/record_ref.rb, line 30
def record_class
  ('::ActiveNetsuite::' + type.camelize).constantize
end