Class: Feedtosis::Result
- Inherits:
-
Object
- Object
- Feedtosis::Result
- Extended by:
- Forwardable
- Defined in:
- lib/feedtosis/result.rb
Overview
Makes the response components both from the Curl::Easy object and the FeedNormalizer::Feed object available to the user by delegating appropriate method calls to the correct object. If FeedNormalizer wasn’t able to process the response, calls which would be delegated to this object return nil. In these cases, depending on your business logic you may want to inspect the state of the Curl::Easy object by using methods forwarded to it.
Instance Method Summary collapse
-
#initialize(curl, feed) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(curl, feed) ⇒ Result
Returns a new instance of Result.
12 13 14 15 16 17 |
# File 'lib/feedtosis/result.rb', line 12 def initialize(curl, feed) @curl = curl @feed = feed raise ArgumentError, "Curl object must not be nil" if curl.nil? end |