Sha256: 173b286bad6132a42e49efda07dee1ab92b32b3a957c48f05910e93d28fe99ce

Contents?: true

Size: 537 Bytes

Versions: 24

Compression:

Stored size: 537 Bytes

Contents

class Mechanize::HTTP::AuthRealm

  attr_reader :scheme
  attr_reader :uri
  attr_reader :realm

  def initialize scheme, uri, realm
    @scheme = scheme
    @uri    = uri
    @realm  = realm.downcase if realm
  end

  def == other
    self.class === other and
      @scheme == other.scheme and
      @uri    == other.uri    and
      @realm  == other.realm
  end

  alias eql? ==

  def hash # :nodoc:
    [@scheme, @uri, @realm].hash
  end

  def inspect # :nodoc:
    "#<AuthRealm %s %p \"%s\">" % [@scheme, @uri, @realm]
  end

end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
mechanize-2.7.4 lib/mechanize/http/auth_realm.rb
mechanize-2.7.3 lib/mechanize/http/auth_realm.rb
mechanize-2.7.2 lib/mechanize/http/auth_realm.rb
mechanize-2.7.1 lib/mechanize/http/auth_realm.rb
mechanize-2.7.0 lib/mechanize/http/auth_realm.rb
mechanize-2.6.0 lib/mechanize/http/auth_realm.rb
mechanize-2.5.1 lib/mechanize/http/auth_realm.rb
mechanize-2.5 lib/mechanize/http/auth_realm.rb
mechanize-2.4 lib/mechanize/http/auth_realm.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/http/auth_realm.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/http/auth_realm.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/http/auth_realm.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/http/auth_realm.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/http/auth_realm.rb
mechanize-2.3 lib/mechanize/http/auth_realm.rb
mechanize-2.2.1 lib/mechanize/http/auth_realm.rb
mechanize-2.2 lib/mechanize/http/auth_realm.rb
mechanize-2.1.1 lib/mechanize/http/auth_realm.rb
domo-0.0.5 vendor/bundle/ruby/1.9.1/gems/mechanize-2.1/lib/mechanize/http/auth_realm.rb
diamond-mechanize-2.4 lib/mechanize/http/auth_realm.rb