Class: Html2rss::RequestService::Strategy
- Inherits:
-
Object
- Object
- Html2rss::RequestService::Strategy
- Defined in:
- lib/html2rss/request_service/strategy.rb
Overview
Defines the interface of every request strategy.
Direct Known Subclasses
Instance Method Summary collapse
-
#execute ⇒ Response
Executes the request.
-
#initialize(ctx) ⇒ Strategy
constructor
A new instance of Strategy.
Constructor Details
#initialize(ctx) ⇒ Strategy
Returns a new instance of Strategy.
10 11 12 |
# File 'lib/html2rss/request_service/strategy.rb', line 10 def initialize(ctx) @ctx = ctx end |
Instance Method Details
#execute ⇒ Response
Executes the request.
18 19 20 |
# File 'lib/html2rss/request_service/strategy.rb', line 18 def execute raise NotImplementedError, 'Subclass must implement #execute' end |