Class: Bundler::AnonymizableURI

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/anonymizable_uri.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_uri, fallback_auth = nil) ⇒ AnonymizableURI

Returns a new instance of AnonymizableURI.



6
7
8
9
# File 'lib/bundler/anonymizable_uri.rb', line 6

def initialize(original_uri, fallback_auth = nil)
  @original_uri = apply_auth(original_uri, fallback_auth).freeze
  @without_credentials = remove_auth(@original_uri).freeze
end

Instance Attribute Details

#original_uriObject (readonly)

Returns the value of attribute original_uri.



3
4
5
# File 'lib/bundler/anonymizable_uri.rb', line 3

def original_uri
  @original_uri
end

#without_credentialsObject (readonly)

Returns the value of attribute without_credentials.



3
4
5
# File 'lib/bundler/anonymizable_uri.rb', line 3

def without_credentials
  @without_credentials
end