Class: Bundler::Fetcher::Base
- Inherits:
-
Object
- Object
- Bundler::Fetcher::Base
- Defined in:
- lib/bundler/fetcher/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#display_uri ⇒ Object
readonly
Returns the value of attribute display_uri.
-
#downloader ⇒ Object
readonly
Returns the value of attribute downloader.
-
#fetch_uri ⇒ Object
readonly
Returns the value of attribute fetch_uri.
-
#remote_uri ⇒ Object
readonly
Returns the value of attribute remote_uri.
Instance Method Summary collapse
- #api_available? ⇒ Boolean
- #api_fetcher? ⇒ Boolean
-
#initialize(downloader, remote_uri, fetch_uri, display_uri) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(downloader, remote_uri, fetch_uri, display_uri) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 15 |
# File 'lib/bundler/fetcher/base.rb', line 9 def initialize(downloader, remote_uri, fetch_uri, display_uri) raise 'Abstract class' if self.class == Base @downloader = downloader @remote_uri = remote_uri @fetch_uri = fetch_uri @display_uri = display_uri end |
Instance Attribute Details
#display_uri ⇒ Object (readonly)
Returns the value of attribute display_uri.
7 8 9 |
# File 'lib/bundler/fetcher/base.rb', line 7 def display_uri @display_uri end |
#downloader ⇒ Object (readonly)
Returns the value of attribute downloader.
4 5 6 |
# File 'lib/bundler/fetcher/base.rb', line 4 def downloader @downloader end |
#fetch_uri ⇒ Object (readonly)
Returns the value of attribute fetch_uri.
6 7 8 |
# File 'lib/bundler/fetcher/base.rb', line 6 def fetch_uri @fetch_uri end |
#remote_uri ⇒ Object (readonly)
Returns the value of attribute remote_uri.
5 6 7 |
# File 'lib/bundler/fetcher/base.rb', line 5 def remote_uri @remote_uri end |
Instance Method Details
#api_available? ⇒ Boolean
17 18 19 |
# File 'lib/bundler/fetcher/base.rb', line 17 def api_available? api_fetcher? end |
#api_fetcher? ⇒ Boolean
21 22 23 |
# File 'lib/bundler/fetcher/base.rb', line 21 def api_fetcher? false end |