Sha256: 91120a10630b5cde6070805641728951c81e8736673ec51b29cfec609f7759e1
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
module Gerry class Client module Accounts # Get the account info for the specified account ID. # # @param [String] account_id the account. # @return [Hash] the account info. def account_info(account_id) url = "/accounts/#{account_id}" get(url) end # Get the global capabilities that are enabled for the calling user. # # @param [Array] options the query parameters. # @return [Hash] the account capabilities. def account_capabilities(options = []) url = '/accounts/self/capabilities' if options.empty? return get(url) end options = map_options(options) get("#{url}?#{options}") end # Get all groups that contain the specified account as a member # # @param [String] account_id the account # @return [Enumberable] the groups def groups_for_account(account_id) url = "/accounts/#{account_id}/groups/" get(url) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gerry-0.1.5 | lib/gerry/client/accounts.rb |
gerry-0.1.4 | lib/gerry/client/accounts.rb |
gerry-0.1.3 | lib/gerry/client/accounts.rb |
gerry-0.1.2 | lib/gerry/client/accounts.rb |