Class: Bundler::Fetcher::Base

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

Direct Known Subclasses

Dependency, Index

Instance Attribute Summary collapse

Instance Method Summary collapse

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_uriObject (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

#downloaderObject (readonly)

Returns the value of attribute downloader.



4
5
6
# File 'lib/bundler/fetcher/base.rb', line 4

def downloader
  @downloader
end

#fetch_uriObject (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_uriObject (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

Returns:

  • (Boolean)


17
18
19
# File 'lib/bundler/fetcher/base.rb', line 17

def api_available?
  api_fetcher?
end

#api_fetcher?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/bundler/fetcher/base.rb', line 21

def api_fetcher?
  false
end