Class: NetSuite::Rest::Utilities::Roles

Inherits:
Object
  • Object
show all
Defined in:
lib/netsuite/rest/utilities/roles.rb

Class Method Summary collapse

Class Method Details

.get(opts = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/netsuite/rest/utilities/roles.rb', line 8

def get(opts={})
  status, body = Request.get(
    email:    opts.fetch(:email, Configuration.email),
    password: opts.fetch(:password, Configuration.password),
    sandbox:  opts.fetch(:sandbox, Configuration.sandbox),
    uri:      '/roles',
  )
  status == "200" ? format_response(body) : body
end