Class: NetSuite::Records::LocationsList
- Inherits:
-
Object
- Object
- NetSuite::Records::LocationsList
- Defined in:
- lib/netsuite/records/locations_list.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ LocationsList
constructor
A new instance of LocationsList.
- #locations ⇒ Object
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
#locations ⇒ Object
10 11 12 |
# File 'lib/netsuite/records/locations_list.rb', line 10 def locations @locations ||= [] end |