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, #name

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#reload, #rollback, #save

Instance Attribute Details

#feed_urlString

Returns the URL of the feed.

Returns:

  • (String)

    the URL of the feed



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

attribute :feed_url

#postsCollection::Post

Returns the posts included in the feed.

Returns:



250
251
252
# File 'lib/lws/apps/resource.rb', line 250

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)



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

attribute :refresh_interval