Class: Bundler::AnonymizableURI
- Inherits:
-
Object
- Object
- Bundler::AnonymizableURI
- Defined in:
- lib/bundler/anonymizable_uri.rb
Instance Attribute Summary collapse
-
#original_uri ⇒ Object
readonly
Returns the value of attribute original_uri.
-
#without_credentials ⇒ Object
readonly
Returns the value of attribute without_credentials.
Instance Method Summary collapse
-
#initialize(original_uri, fallback_auth = nil) ⇒ AnonymizableURI
constructor
A new instance of AnonymizableURI.
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_uri ⇒ Object (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_credentials ⇒ Object (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 |