Class: MediaRss::Channel
- Inherits:
-
Object
- Object
- MediaRss::Channel
- Defined in:
- lib/media_rss/models/channel.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#items ⇒ Object
Returns the value of attribute items.
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, opts = {}) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(title, opts = {}) ⇒ Channel
Returns a new instance of Channel.
7 8 9 10 11 12 13 |
# File 'lib/media_rss/models/channel.rb', line 7 def initialize(title, opts = {}) @title = title @icon = opts[:icon] @link = opts[:link] @description = opts[:description] @items = [] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/media_rss/models/channel.rb', line 5 def description @description end |
#icon ⇒ Object
Returns the value of attribute icon.
5 6 7 |
# File 'lib/media_rss/models/channel.rb', line 5 def icon @icon end |
#items ⇒ Object
Returns the value of attribute items.
5 6 7 |
# File 'lib/media_rss/models/channel.rb', line 5 def items @items end |
#link ⇒ Object
Returns the value of attribute link.
5 6 7 |
# File 'lib/media_rss/models/channel.rb', line 5 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/media_rss/models/channel.rb', line 5 def title @title end |