Class: Lifestream::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/lifestream/channel.rb

Direct Known Subclasses

Rss2

Defined Under Namespace

Classes: DownloadError, MethodError, Rss2

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#branchesObject

Returns the value of attribute branches.



4
5
6
# File 'lib/lifestream/channel.rb', line 4

def branches
  @branches
end

#feedObject

Returns the value of attribute feed.



4
5
6
# File 'lib/lifestream/channel.rb', line 4

def feed
  @feed
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/lifestream/channel.rb', line 4

def name
  @name
end

#raw_textObject

Returns the value of attribute raw_text.



4
5
6
# File 'lib/lifestream/channel.rb', line 4

def raw_text
  @raw_text
end