Class: FeedFolder
- Inherits:
-
Object
- Object
- FeedFolder
- Defined in:
- lib/imap-feeder/feedfolder.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#name ⇒ Object
Returns the value of attribute name.
-
#urls ⇒ Object
Returns the value of attribute urls.
Instance Method Summary collapse
- #[](index) ⇒ Object
- #add_sub(child) ⇒ Object
- #add_url(url) ⇒ Object
-
#initialize(name) ⇒ FeedFolder
constructor
A new instance of FeedFolder.
Constructor Details
#initialize(name) ⇒ FeedFolder
Returns a new instance of FeedFolder.
6 7 8 9 10 |
# File 'lib/imap-feeder/feedfolder.rb', line 6 def initialize(name) @name = name @children = [] @urls = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
4 5 6 |
# File 'lib/imap-feeder/feedfolder.rb', line 4 def children @children end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/imap-feeder/feedfolder.rb', line 4 def name @name end |
#urls ⇒ Object
Returns the value of attribute urls.
4 5 6 |
# File 'lib/imap-feeder/feedfolder.rb', line 4 def urls @urls end |
Instance Method Details
#[](index) ⇒ Object
20 21 22 |
# File 'lib/imap-feeder/feedfolder.rb', line 20 def [](index) @children[index] end |
#add_sub(child) ⇒ Object
12 13 14 |
# File 'lib/imap-feeder/feedfolder.rb', line 12 def add_sub(child) @children << child end |
#add_url(url) ⇒ Object
16 17 18 |
# File 'lib/imap-feeder/feedfolder.rb', line 16 def add_url(url) @urls << url end |