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



59
60
61
62
63
64
65
66
67
68
69
# 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