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
Config, Feed, Image, Post, Video, Vimeo, WeatherLocation, WeatherLocation::Forecast, YouTube
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.
-
#metadata ⇒ Hash
The metadata of the collection item.
-
#name ⇒ String
The name of the collection item.
-
#position ⇒ Integer
The position of the item within the collection.
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
#collection ⇒ Collection
Returns the collection that the collection item is a part of.
199 |
# File 'lib/lws/apps/resource.rb', line 199 belongs_to :collection |
#collection_id ⇒ Integer
Returns the ID of the collection that the collection item is a part of.
204 |
# File 'lib/lws/apps/resource.rb', line 204 attribute :collection_id |
#metadata ⇒ Hash
Returns the metadata of the collection item.
208 |
# File 'lib/lws/apps/resource.rb', line 208 attribute :metadata |
#name ⇒ String
Returns the name of the collection item.
212 |
# File 'lib/lws/apps/resource.rb', line 212 attribute :name |
#position ⇒ Integer
Returns the position of the item within the collection.
216 |
# File 'lib/lws/apps/resource.rb', line 216 attribute :position |