Module: Gerry::Client::Accounts

Included in:
Gerry::Client
Defined in:
lib/gerry/client/accounts.rb

Instance Method Summary collapse

Instance Method Details

#account_capabilities(options = []) ⇒ Hash

Get the global capabilities that are enabled for the calling user.

Parameters:

  • options (Array) (defaults to: [])

    the query parameters.

Returns:

  • (Hash)

    the account capabilities.


8
9
10
11
12
13
14
15
16
17
# File 'lib/gerry/client/accounts.rb', line 8

def (options = [])
  url = '/accounts/self/capabilities'
  
  if options.empty?
    return get(url)
  end
  
  options = map_options(options)
  get("#{url}?#{options}")
end