Class: LWS::Resource::Collection::Feed
- Inherits:
-
Item
- Object
- Spyke::Base
- Generic::Model
- Item
- LWS::Resource::Collection::Feed
- Defined in:
- lib/lws/apps/resource.rb
Overview
The collection feed class
Defined Under Namespace
Classes: Post
Instance Attribute Summary collapse
-
#feed_url ⇒ String
The URL of the feed.
-
#post_ids ⇒ Collection::Post
The IDs of the posts included in the feed.
-
#posts ⇒ Collection::Post
The posts included in the feed.
-
#refresh_interval ⇒ Integer
The interval used to refresh the feed (in seconds).
Attributes inherited from Item
#collection, #collection_id, #metadata, #name, #position
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
#deep_dup, #dig, #reload, #rollback, #save
Instance Attribute Details
#feed_url ⇒ String
Returns the URL of the feed.
234 |
# File 'lib/lws/apps/resource.rb', line 234 attribute :feed_url |
#post_ids ⇒ Collection::Post
Returns the IDs of the posts included in the feed.
238 |
# File 'lib/lws/apps/resource.rb', line 238 attribute :post_ids |
#posts ⇒ Collection::Post
Returns the posts included in the feed.
242 243 244 |
# File 'lib/lws/apps/resource.rb', line 242 has_many :posts, class_name: "LWS::Resource::Collection::Feed::Post", uri: "collections/:collection_id/feeds/:feed_id/posts(/:id)" |
#refresh_interval ⇒ Integer
Returns the interval used to refresh the feed (in seconds).
248 |
# File 'lib/lws/apps/resource.rb', line 248 attribute :refresh_interval |