Class: Fetch::Backend::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fetch/backend/base.rb

Direct Known Subclasses

Typhoeus

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(requests) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/fetch/backend/base.rb', line 6

def initialize(requests)
  @requests = requests
end

Instance Attribute Details

#requestsObject (readonly)

Returns the value of attribute requests.



4
5
6
# File 'lib/fetch/backend/base.rb', line 4

def requests
  @requests
end

Instance Method Details

#run(&progress) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/fetch/backend/base.rb', line 10

def run(&progress)
  raise NotImplementedError
end