Class: Fetch::Backend::Base
- Inherits:
-
Object
- Object
- Fetch::Backend::Base
- Defined in:
- lib/fetch/backend/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#requests ⇒ Object
readonly
Returns the value of attribute requests.
Instance Method Summary collapse
-
#initialize(requests) ⇒ Base
constructor
A new instance of Base.
- #run(&progress) ⇒ Object
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
#requests ⇒ Object (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
10 11 12 |
# File 'lib/fetch/backend/base.rb', line 10 def run(&progress) raise NotImplementedError end |