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

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

Overview

The collection feed post class

Instance Attribute Summary collapse

Attributes inherited from Post

#author, #avatar, #category, #comments, #description, #guid, #handle, #link, #order_priority, #source_url, #summary, #title

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

#feedCollection::Feed

Returns the collection feed that the collection feed post is a part of.

Returns:

  • (Collection::Feed)

    the collection feed that the collection feed post is a part of



258
259
260
# File 'lib/lws/apps/resource.rb', line 258

belongs_to :feed,
class_name: "LWS::Resource::Collection::Feed",
uri: "collections/:collection_id/feeds(/:id)"

#feed_idInteger

Returns the ID of the collection feed that the collection feed is a post is part of.

Returns:

  • (Integer)

    the ID of the collection feed that the collection feed is a post is part of



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

attribute :feed_id