Module: NetSuite::Actions::GetList::Support::ClassMethods
- Defined in:
- lib/netsuite/actions/get_list.rb
Instance Method Summary collapse
Instance Method Details
#get_list(options = { }, credentials = {}) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/netsuite/actions/get_list.rb', line 82 def get_list( = { }, credentials={}) response = NetSuite::Actions::GetList.call([self, ], credentials) if response.success? response.body.inject([]) do |arr, record| arr << new(record[:record]) unless record[:status][:@is_success] != 'true' arr end else false end end |