Class: MediaRss::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/media_rss/models/channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/media_rss/models/channel.rb', line 5

def description
  @description
end

#iconObject

Returns the value of attribute icon.



5
6
7
# File 'lib/media_rss/models/channel.rb', line 5

def icon
  @icon
end

#itemsObject

Returns the value of attribute items.



5
6
7
# File 'lib/media_rss/models/channel.rb', line 5

def items
  @items
end

Returns the value of attribute link.



5
6
7
# File 'lib/media_rss/models/channel.rb', line 5

def link
  @link
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/media_rss/models/channel.rb', line 5

def title
  @title
end