Class: LWS::Resource::Collection::Item
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Resource::Collection::Item
- Defined in:
- lib/lws/apps/resource.rb
Overview
The collection item class
Direct Known Subclasses
Feed, Image, Post, Video, WeatherLocation, WeatherLocation::Forecast
Instance Attribute Summary collapse
-
#collection ⇒ Collection
The collection that the collection item is a part of.
-
#collection_id ⇒ Integer
The ID of the collection that the collection item is a part of.
-
#name ⇒ String
The name of the collection item.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
Instance Attribute Details
#collection ⇒ Collection
Returns the collection that the collection item is a part of.
156 |
# File 'lib/lws/apps/resource.rb', line 156 belongs_to :collection |
#collection_id ⇒ Integer
Returns the ID of the collection that the collection item is a part of.
161 |
# File 'lib/lws/apps/resource.rb', line 161 attribute :collection_id |
#name ⇒ String
Returns the name of the collection item.
165 |
# File 'lib/lws/apps/resource.rb', line 165 attribute :name |