lib/gooddata/commands/user.rb in gooddata-0.6.7 vs lib/gooddata/commands/user.rb in gooddata-0.6.8

- old
+ new

@@ -1,12 +1,12 @@ # encoding: UTF-8 -require_relative '../core/core' - require 'highline/import' require 'multi_json' +require_relative '../core/core' + module GoodData module Command class User class << self def roles(pid) @@ -22,11 +22,13 @@ } end roles end - def show - GoodData.profile.to_json + def show(opts = { client: GoodData.connection }) + client = opts[:client] + fail ArgumentError, 'No :client specified' if client.nil? + pp client.user.json end end end end end