Parent

Class/Module Index [+]

Quicksearch

RHC::Rest::WWWAuth::DeferredCredential

Public Instance Methods

passwd() click to toggle source
# File lib/rhc/rest/httpclient.rb, line 108
def passwd
  (@password.call if @password.respond_to?(:call)) or @password
end
to_str() click to toggle source

Pretend to be a string

# File lib/rhc/rest/httpclient.rb, line 115
def to_str
  ["#{user}:#{passwd}"].pack('m').tr("\n", '')
end
user() click to toggle source
# File lib/rhc/rest/httpclient.rb, line 105
def user
  (@user.call if @user.respond_to?(:call)) or @user
end

Public Class Methods

new(user, password) click to toggle source
# 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.