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



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

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