Class: AudioVision::Category
- Inherits:
-
Object
- Object
- AudioVision::Category
- Defined in:
- lib/audio_vision/category.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#public_url ⇒ Object
Returns the value of attribute public_url.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(attributes = {}) ⇒ Category
Returns a new instance of Category.
12 13 14 15 16 17 18 |
# File 'lib/audio_vision/category.rb', line 12 def initialize(attributes={}) @id = attributes["id"] @title = attributes["title"] @slug = attributes["slug"] @description = attributes["description"] @public_url = attributes["public_url"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/audio_vision/category.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/audio_vision/category.rb', line 4 def id @id end |
#public_url ⇒ Object
Returns the value of attribute public_url.
4 5 6 |
# File 'lib/audio_vision/category.rb', line 4 def public_url @public_url end |
#slug ⇒ Object
Returns the value of attribute slug.
4 5 6 |
# File 'lib/audio_vision/category.rb', line 4 def slug @slug end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/audio_vision/category.rb', line 4 def title @title end |