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.
135 |
# File 'lib/lws/apps/resource.rb', line 135 belongs_to :collection |
#collection_id ⇒ Integer
Returns the ID of the collection that the collection item is a part of.
140 |
# File 'lib/lws/apps/resource.rb', line 140 attribute :collection_id |
#metadata ⇒ Hash
Returns the metadata of the collection item.
144 |
# File 'lib/lws/apps/resource.rb', line 144 attribute :metadata |
#name ⇒ String
Returns the name of the collection item.
148 |
# File 'lib/lws/apps/resource.rb', line 148 attribute :name |
#position ⇒ Integer
Returns the position of the item within the collection.
152 |
# File 'lib/lws/apps/resource.rb', line 152 attribute :position |