Module: NetSuite::Actions::GetAll::Support::ClassMethods
- Defined in:
- lib/netsuite/actions/get_all.rb
Instance Method Summary collapse
Instance Method Details
#get_all(credentials = {}) ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/netsuite/actions/get_all.rb', line 55 def get_all(credentials = {}) response = NetSuite::Actions::GetAll.call([self], credentials) if response.success? response.body.map { |attr| new(attr) } else raise RecordNotFound, "#{self} with OPTIONS=#{.inspect} could not be found" end end |