Class: OpmlReader::Category
- Inherits:
-
Object
- Object
- OpmlReader::Category
- Defined in:
- lib/opml_reader/category.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rss ⇒ Object
readonly
Returns the value of attribute rss.
Instance Method Summary collapse
- #add_rss(rss) ⇒ Object
-
#initialize(name) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(name) ⇒ Category
Returns a new instance of Category.
6 7 8 9 |
# File 'lib/opml_reader/category.rb', line 6 def initialize(name) @name = name @rss = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/opml_reader/category.rb', line 5 def name @name end |
#rss ⇒ Object (readonly)
Returns the value of attribute rss.
5 6 7 |
# File 'lib/opml_reader/category.rb', line 5 def rss @rss end |
Instance Method Details
#add_rss(rss) ⇒ Object
11 12 13 |
# File 'lib/opml_reader/category.rb', line 11 def add_rss(rss) @rss << rss end |