Class: LWS::Resource::Collection::Feed

Inherits:
Item show all
Defined in:
lib/lws/apps/resource.rb

Overview

The collection feed class

Defined Under Namespace

Classes: Post

Instance Attribute Summary collapse

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_urlString

Returns the URL of the feed.

Returns:

  • (String)

    the URL of the feed



234
# File 'lib/lws/apps/resource.rb', line 234

attribute :feed_url

#post_idsCollection::Post

Returns the IDs of the posts included in the feed.

Returns:



238
# File 'lib/lws/apps/resource.rb', line 238

attribute :post_ids

#postsCollection::Post

Returns the posts included in the feed.

Returns:



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_intervalInteger

Returns the interval used to refresh the feed (in seconds).

Returns:

  • (Integer)

    the interval used to refresh the feed (in seconds)



248
# File 'lib/lws/apps/resource.rb', line 248

attribute :refresh_interval