Class: FeedSearcher::Fetcher
- Inherits:
-
Object
- Object
- FeedSearcher::Fetcher
- Defined in:
- lib/feed_searcher/fetcher.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(url, options = {}) ⇒ Fetcher
constructor
A new instance of Fetcher.
Constructor Details
#initialize(url, options = {}) ⇒ Fetcher
Returns a new instance of Fetcher.
9 10 11 12 |
# File 'lib/feed_searcher/fetcher.rb', line 9 def initialize(url, = {}) @url = url @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/feed_searcher/fetcher.rb', line 7 def @options end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/feed_searcher/fetcher.rb', line 7 def url @url end |
Class Method Details
.fetch(*args) ⇒ Object
3 4 5 |
# File 'lib/feed_searcher/fetcher.rb', line 3 def self.fetch(*args) new(*args).fetch end |