Class: Strelka::CMS::Feeds
- Inherits:
-
App
- Object
- App
- Strelka::CMS::Feeds
- Extended by:
- Configurability, Loggability, MethodUtilities
- Includes:
- UUIDTools
- Defined in:
- lib/strelka/cms/feeds.rb
Overview
The Feed applet – generate RSS and Atom feeds for various things.
Constant Summary collapse
- ID =
Strelka app ID
'content-feeds'
- DEFAULT_CONFIG =
Configuration defaults
{ uuid: UUID.sha1_create( UUID_DNS_NAMESPACE, Socket.gethostname ).to_s, entry_count: 10, pageroot: Pathname( __FILE__ ).dirname.parent.parent.parent + 'public', paths: [''], }
Instance Attribute Summary collapse
-
#catalog ⇒ Object
readonly
The PageCatalog to use for building feeds.
Class Method Summary collapse
-
.configure(config = nil) ⇒ Object
Configurability API – configure the app.
Instance Method Summary collapse
-
#initialize ⇒ Feeds
constructor
Set up the feeds app.
Constructor Details
#initialize ⇒ Feeds
Set up the feeds app.
72 73 74 75 76 |
# File 'lib/strelka/cms/feeds.rb', line 72 def initialize( * ) super @catalog = Strelka::CMS::PageCatalog.new( self.class.pageroot ) @site_uuid = UUID.parse( self.class.uuid ) end |
Instance Attribute Details
#catalog ⇒ Object (readonly)
The PageCatalog to use for building feeds
83 84 85 |
# File 'lib/strelka/cms/feeds.rb', line 83 def catalog @catalog end |
Class Method Details
.configure(config = nil) ⇒ Object
Configurability API – configure the app.
61 62 63 64 65 66 67 68 |
# File 'lib/strelka/cms/feeds.rb', line 61 def self::configure( config=nil ) if config self.uuid = config[:uuid] self.entry_count = config[:entry_count] self.pageroot = config[:pageroot] self.paths = config[:paths] end end |