module NetSuite::Actions::GetAll::Support::ClassMethods

Public Instance Methods

get_all(credentials = {}) click to toggle source
# File lib/netsuite/actions/get_all.rb, line 59
def get_all(credentials = {})
  response = NetSuite::Actions::GetAll.call([self], credentials)

  # TODO expose errors to the user

  if response.success?
    response.body.map { |attr| new(attr) }
  else
    false
  end
end