Module: NetSuite::Actions::GetList::Support::ClassMethods

Defined in:
lib/netsuite/actions/get_list.rb

Instance Method Summary collapse

Instance Method Details

#get_list(options = { }) ⇒ Object



62
63
64
65
66
67
68
69
70
71
72
# File 'lib/netsuite/actions/get_list.rb', line 62

def get_list(options = { })
  response = NetSuite::Actions::GetList.call(self, options)

  if response.success?
    response.body.map do |record|
      new(record[:record])
    end
  else
    false
  end
end