Class: NetSuite::Records::BaseRefList
Instance Attribute Summary
#errors
Instance Method Summary
collapse
#record_namespace
included
included
#attributes, #attributes=, #initialize_from_attributes_hash
Constructor Details
#initialize(attrs = {}) ⇒ 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_ref ⇒ Object
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
|