Class: OpmlReader::RSS

Inherits:
Object
  • Object
show all
Defined in:
lib/opml_reader/rss.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, html_url, xml_url, category = "uncategorized") ⇒ RSS

Returns a new instance of RSS.



6
7
8
9
10
11
# File 'lib/opml_reader/rss.rb', line 6

def initialize(title, html_url, xml_url, category = "uncategorized")
    @title = title
    @html_url = html_url 
    @xml_url = xml_url
    @category = category
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



5
6
7
# File 'lib/opml_reader/rss.rb', line 5

def category
  @category
end

#html_urlObject (readonly)

Returns the value of attribute html_url.



5
6
7
# File 'lib/opml_reader/rss.rb', line 5

def html_url
  @html_url
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/opml_reader/rss.rb', line 5

def title
  @title
end

#xml_urlObject (readonly)

Returns the value of attribute xml_url.



5
6
7
# File 'lib/opml_reader/rss.rb', line 5

def xml_url
  @xml_url
end