Class: Kooaba::Item
- Inherits:
-
Object
- Object
- Kooaba::Item
- Defined in:
- lib/kooaba/item.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#image_files ⇒ Object
Returns the value of attribute image_files.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#reference_id ⇒ Object
Returns the value of attribute reference_id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(options = {}) ⇒ Item
Returns a new instance of Item.
10 11 12 13 14 15 16 |
# File 'lib/kooaba/item.rb', line 10 def initialize( = {}) @title = [:title] @metadata = [:metadata] @enabled = [:enabled] || true @reference_id = [:reference_id] @image_files = [:image_files] || [] end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
6 7 8 |
# File 'lib/kooaba/item.rb', line 6 def enabled @enabled end |
#image_files ⇒ Object
Returns the value of attribute image_files.
8 9 10 |
# File 'lib/kooaba/item.rb', line 8 def image_files @image_files end |
#metadata ⇒ Object
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/kooaba/item.rb', line 5 def @metadata end |
#reference_id ⇒ Object
Returns the value of attribute reference_id.
7 8 9 |
# File 'lib/kooaba/item.rb', line 7 def reference_id @reference_id end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/kooaba/item.rb', line 4 def title @title end |