Sha256: 31694805f29515acdd62dda26d97d2e78b044e9faeffdf49bf0533232a6231ff
Contents?: true
Size: 736 Bytes
Versions: 6
Compression:
Stored size: 736 Bytes
Contents
# encoding: UTF-8 require_relative '../core/core' require 'highline/import' require 'multi_json' module GoodData module Command class User class << self def roles(pid) roles_response = GoodData.get("/gdc/projects/#{pid}/roles") roles = {} roles_response['projectRoles']['roles'].each do |role_uri| r = GoodData.get(role_uri) identifier = r['projectRole']['meta']['identifier'] roles[identifier] = { :user_uri => r['projectRole']['links']['roleUsers'], :uri => role_uri } end roles end def show GoodData.profile.to_json end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems