Class: FeedSearcher

Inherits:
Object
  • Object
show all
Defined in:
lib/feed_searcher.rb,
lib/feed_searcher/page.rb,
lib/feed_searcher/fetcher.rb,
lib/feed_searcher/version.rb

Defined Under Namespace

Classes: Fetcher, Page

Constant Summary collapse

VERSION =
"0.0.2"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, options = {}) ⇒ FeedSearcher

Returns a new instance of FeedSearcher.



14
15
16
17
# File 'lib/feed_searcher.rb', line 14

def initialize(url, options = {})
  @url     = url
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



12
13
14
# File 'lib/feed_searcher.rb', line 12

def options
  @options
end

#urlObject (readonly)

Returns the value of attribute url.



12
13
14
# File 'lib/feed_searcher.rb', line 12

def url
  @url
end

Class Method Details

.search(*args) ⇒ Object



8
9
10
# File 'lib/feed_searcher.rb', line 8

def self.search(*args)
  new(*args).search
end

Instance Method Details

#searchObject



19
20
21
# File 'lib/feed_searcher.rb', line 19

def search
  fetch.feed_urls
end