Object
# File lib/rhc/rest/httpclient.rb, line 108 def passwd (@password.call if @password.respond_to?(:call)) or @password end
Pretend to be a string
# File lib/rhc/rest/httpclient.rb, line 115 def to_str ["#{user}:#{passwd}"].pack('m').tr("\n", '') end
# File lib/rhc/rest/httpclient.rb, line 105 def user (@user.call if @user.respond_to?(:call)) or @user end
# File lib/rhc/rest/httpclient.rb, line 102 def initialize(user, password) @user, @password = user, password end
[Validate]
Generated with the Darkfish Rdoc Generator 2.