lib/gooddata/rest/client.rb in gooddata-0.6.9 vs lib/gooddata/rest/client.rb in gooddata-0.6.10

- old
+ new

@@ -73,10 +73,12 @@ end unless new_opts[:sst_token] fail ArgumentError, 'No username specified' if new_opts[:username].nil? fail ArgumentError, 'No password specified' if new_opts[:password].nil? end - + if username.is_a?(Hash) && username.key?(:server) + new_opts[:server] = username[:server] + end client = Client.new(new_opts) if client at_exit do # puts client.connection.stats_table if client && client.connection