Class: Smoke::Source::Feed

Inherits:
Origin show all
Defined in:
lib/smoke/source/feed.rb

Overview

Feed can take multiple rss or atom feeds and munge them up together.

Usage:

Smoke.feed(:ruby) do
  url "domain.tld/rss"
  url "site.tld/atom"
end

Instance Attribute Summary collapse

Attributes inherited from Origin

#items, #name

Instance Method Summary collapse

Methods inherited from Origin

#discard, #emit, #initialize, #insert, #keep, #method_missing, #output, #path, #prepare, #rename, #reverse, #sort, #transform, #truncate

Constructor Details

This class inherits a constructor from Smoke::Origin

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Smoke::Origin

Instance Attribute Details

#requestsObject (readonly)

Returns the value of attribute requests.



11
12
13
# File 'lib/smoke/source/feed.rb', line 11

def requests
  @requests
end

Instance Method Details

#url(feed_uri) ⇒ Object



13
14
15
# File 'lib/smoke/source/feed.rb', line 13

def url(feed_uri)
  (@feeds ||= [] ) << feed_uri
end