Class: Lifestream::Channel
- Inherits:
-
Object
- Object
- Lifestream::Channel
- Defined in:
- lib/lifestream/channel.rb
Direct Known Subclasses
Defined Under Namespace
Classes: DownloadError, MethodError, Rss2
Instance Attribute Summary collapse
-
#branches ⇒ Object
Returns the value of attribute branches.
-
#feed ⇒ Object
Returns the value of attribute feed.
-
#name ⇒ Object
Returns the value of attribute name.
-
#raw_text ⇒ Object
Returns the value of attribute raw_text.
Instance Method Summary collapse
-
#initialize(name, url) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(name, url) ⇒ Channel
Returns a new instance of Channel.
6 7 8 |
# File 'lib/lifestream/channel.rb', line 6 def initialize name, url @name, @branches, @request = name, [], Lifestream::Request.new(url) end |
Instance Attribute Details
#branches ⇒ Object
Returns the value of attribute branches.
4 5 6 |
# File 'lib/lifestream/channel.rb', line 4 def branches @branches end |
#feed ⇒ Object
Returns the value of attribute feed.
4 5 6 |
# File 'lib/lifestream/channel.rb', line 4 def feed @feed end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/lifestream/channel.rb', line 4 def name @name end |
#raw_text ⇒ Object
Returns the value of attribute raw_text.
4 5 6 |
# File 'lib/lifestream/channel.rb', line 4 def raw_text @raw_text end |