Class: NetSuite::Records::BaseRefList

Inherits:
Object
  • Object
show all
Includes:
Namespaces::PlatformCore, Support::Actions, Support::Fields
Defined in:
lib/netsuite/records/base_ref_list.rb

Instance Attribute Summary

Attributes included from Support::Actions

#errors

Instance Method Summary collapse

Methods included from Namespaces::PlatformCore

#record_namespace

Methods included from Support::Actions

included

Methods included from Support::Fields

included

Methods included from Support::Attributes

#attributes, #attributes=, #initialize_from_attributes_hash

Constructor Details

#initialize(attrs = {}) ⇒ BaseRefList

Returns a new instance of BaseRefList.



14
15
16
# File 'lib/netsuite/records/base_ref_list.rb', line 14

def initialize(attrs = {})
  initialize_from_attributes_hash(attrs)
end

Instance Method Details

#base_refObject



27
28
29
# File 'lib/netsuite/records/base_ref_list.rb', line 27

def base_ref
  @base_ref ||= []
end

#base_ref=(refs) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/netsuite/records/base_ref_list.rb', line 18

def base_ref=(refs)
  case refs
  when Hash
    self.base_ref << RecordRef.new(refs)
  when Array
    refs.each { |ref| self.base_ref << RecordRef.new(ref) }
  end
end