Class: OpmlReader::RSS
- Inherits:
-
Object
- Object
- OpmlReader::RSS
- Defined in:
- lib/opml_reader/rss.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#html_url ⇒ Object
readonly
Returns the value of attribute html_url.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#xml_url ⇒ Object
readonly
Returns the value of attribute xml_url.
Instance Method Summary collapse
-
#initialize(title, html_url, xml_url, category = "uncategorized") ⇒ RSS
constructor
A new instance of RSS.
Constructor Details
#initialize(title, html_url, xml_url, category = "uncategorized") ⇒ RSS
Returns a new instance of RSS.
6 7 8 9 10 11 |
# File 'lib/opml_reader/rss.rb', line 6 def initialize(title, html_url, xml_url, category = "uncategorized") @title = title @html_url = html_url @xml_url = xml_url @category = category end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
5 6 7 |
# File 'lib/opml_reader/rss.rb', line 5 def category @category end |
#html_url ⇒ Object (readonly)
Returns the value of attribute html_url.
5 6 7 |
# File 'lib/opml_reader/rss.rb', line 5 def html_url @html_url end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/opml_reader/rss.rb', line 5 def title @title end |
#xml_url ⇒ Object (readonly)
Returns the value of attribute xml_url.
5 6 7 |
# File 'lib/opml_reader/rss.rb', line 5 def xml_url @xml_url end |