Class: NetSuite::Records::VendorCredit

Inherits:
Object
  • Object
show all
Includes:
Namespaces::TranPurch, Support::Actions, Support::Fields, Support::RecordRefs, Support::Records
Defined in:
lib/netsuite/records/vendor_credit.rb

Instance Attribute Summary collapse

Attributes included from Support::Actions

#errors

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Namespaces::TranPurch

#record_namespace

Methods included from Support::Actions

included

Methods included from Support::Records

#record_type, #refresh, #to_attributes!, #to_record

Methods included from Namespaces::PlatformCore

#record_namespace

Methods included from Support::Attributes

#attributes, #attributes=, #initialize_from_attributes_hash

Methods included from Support::RecordRefs

included

Methods included from Support::Fields

included

Constructor Details

#initialize(attributes = {}) ⇒ VendorCredit

Returns a new instance of VendorCredit.



37
38
39
40
# File 'lib/netsuite/records/vendor_credit.rb', line 37

def initialize(attributes = {})
  @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
  initialize_from_attributes_hash(attributes)
end

Instance Attribute Details

#internal_idObject (readonly)

Returns the value of attribute internal_id.



35
36
37
# File 'lib/netsuite/records/vendor_credit.rb', line 35

def internal_id
  @internal_id
end

Class Method Details

.search_class_nameObject



42
43
44
# File 'lib/netsuite/records/vendor_credit.rb', line 42

def self.search_class_name
  "Transaction"
end

.search_class_namespaceObject



46
47
48
# File 'lib/netsuite/records/vendor_credit.rb', line 46

def self.search_class_namespace
  'tranSales'
end