lib/sauce_overage/account.rb in sauce_overage-0.0.1 vs lib/sauce_overage/account.rb in sauce_overage-0.0.2
- old
+ new
@@ -7,14 +7,14 @@
attr_reader :user, :key
def initialize(opts = {})
@user = opts.fetch(:user, sauce_user)
fail 'Must provide user' unless user
- user.strip!
+ @user = user.strip
@key = opts.fetch(:key, sauce_key)
fail 'Must provide key' unless key
- key.strip!
+ @key = key.strip
end
def get_user
get = Curl::Easy.new("https://saucelabs.com/rest/v1/users/#{user}")
get.http_auth_types = :basic