class NetSuite::Records::CustomRecord
Attributes
external_id[RW]
internal_id[R]
search_joins[RW]
Public Class Methods
get(options = {})
click to toggle source
Calls superclass method
# File lib/netsuite/records/custom_record.rb, line 33 def self.get(options = {}) options.merge!(:type_id => type_id) unless options[:type_id] super(options.merge(:custom => true)) end
new(attributes = {})
click to toggle source
# File lib/netsuite/records/custom_record.rb, line 27 def initialize(attributes = {}) @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id) @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id) initialize_from_attributes_hash(attributes) end
type_id(id = nil)
click to toggle source
# File lib/netsuite/records/custom_record.rb, line 42 def self.type_id(id = nil) if id @type_id = id end @type_id end
Public Instance Methods
delete()
click to toggle source
Calls superclass method
# File lib/netsuite/records/custom_record.rb, line 38 def delete super(:custom => true) end
record_type()
click to toggle source
# File lib/netsuite/records/custom_record.rb, line 50 def record_type "#{record_namespace}:CustomRecord" end