Class: Smoke::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

#exposed, #items, #name, #requirements

Instance Method Summary collapse

Methods inherited from Origin

#conceal, #concealed?, #discard, #emit, #expose, #exposed?, #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.



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

def requests
  @requests
end

Instance Method Details

#url(feed_uri) ⇒ Object



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

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