Class: NetSuite::Records::LocationsList

Inherits:
Object
  • Object
show all
Defined in:
lib/netsuite/records/locations_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ LocationsList

Returns a new instance of LocationsList.



4
5
6
7
8
# File 'lib/netsuite/records/locations_list.rb', line 4

def initialize(attributes = {})
  attributes[:locations].each do |location|
    locations << location
  end if attributes[:locations]
end

Instance Method Details

#locationsObject



10
11
12
# File 'lib/netsuite/records/locations_list.rb', line 10

def locations
  @locations ||= []
end