Class: FeedFolder

Inherits:
Object
  • Object
show all
Defined in:
lib/imap-feeder/feedfolder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#childrenObject

Returns the value of attribute children.



4
5
6
# File 'lib/imap-feeder/feedfolder.rb', line 4

def children
  @children
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/imap-feeder/feedfolder.rb', line 4

def name
  @name
end

#urlsObject

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