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



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

attribute :feed_url

#postsCollection::Post

Returns the posts included in the feed.

Returns:



302
303
304
# File 'lib/lws/apps/resource.rb', line 302

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)



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

attribute :refresh_interval