Class: MusicBox::Catalog::CollectionItem
- Inherits:
-
Group::Item
- Object
- Group::Item
- MusicBox::Catalog::CollectionItem
- Defined in:
- lib/musicbox/catalog/collection_item.rb
Instance Attribute Summary collapse
-
#basic_information ⇒ Object
Returns the value of attribute basic_information.
-
#date_added ⇒ Object
Returns the value of attribute date_added.
-
#folder_id ⇒ Object
Returns the value of attribute folder_id.
-
#instance_id ⇒ Object
Returns the value of attribute instance_id.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#release ⇒ Object
linked on load.
-
#resource_url ⇒ Object
Returns the value of attribute resource_url.
Attributes inherited from Group::Item
Instance Method Summary collapse
Methods inherited from Group::Item
#<=>, #fields, #info_file, #initialize, load, #save
Constructor Details
This class inherits a constructor from MusicBox::Group::Item
Instance Attribute Details
#basic_information ⇒ Object
Returns the value of attribute basic_information.
7 8 9 |
# File 'lib/musicbox/catalog/collection_item.rb', line 7 def basic_information @basic_information end |
#date_added ⇒ Object
Returns the value of attribute date_added.
8 9 10 |
# File 'lib/musicbox/catalog/collection_item.rb', line 8 def date_added @date_added end |
#folder_id ⇒ Object
Returns the value of attribute folder_id.
9 10 11 |
# File 'lib/musicbox/catalog/collection_item.rb', line 9 def folder_id @folder_id end |
#instance_id ⇒ Object
Returns the value of attribute instance_id.
10 11 12 |
# File 'lib/musicbox/catalog/collection_item.rb', line 10 def instance_id @instance_id end |
#notes ⇒ Object
Returns the value of attribute notes.
11 12 13 |
# File 'lib/musicbox/catalog/collection_item.rb', line 11 def notes @notes end |
#rating ⇒ Object
Returns the value of attribute rating.
12 13 14 |
# File 'lib/musicbox/catalog/collection_item.rb', line 12 def @rating end |
#release ⇒ Object
linked on load
14 15 16 |
# File 'lib/musicbox/catalog/collection_item.rb', line 14 def release @release end |
#resource_url ⇒ Object
Returns the value of attribute resource_url.
13 14 15 |
# File 'lib/musicbox/catalog/collection_item.rb', line 13 def resource_url @resource_url end |
Instance Method Details
#serialize(args = {}) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/musicbox/catalog/collection_item.rb', line 20 def serialize(args={}) super( basic_information: @basic_information, date_added: @date_added, folder_id: @folder_id, instance_id: @instance_id, notes: @notes, rating: @rating, resource_url: @resource_url) end |