Class: GozapRss::ChoutiRss
- Inherits:
-
ChoutiRssBase
- Object
- ChoutiRssBase
- GozapRss::ChoutiRss
- Defined in:
- lib/gozap_rss/chouti_rss.rb
Constant Summary collapse
- ENCODING =
/\bencoding\s*=\s*["'](.*?)['"]/um
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Attributes inherited from ChoutiRssBase
#content, #description, #http_headers_option, #pub_date, #title, #ttl, #url
Instance Method Summary collapse
-
#initialize(uri) ⇒ ChoutiRss
constructor
A new instance of ChoutiRss.
Methods inherited from ChoutiRssBase
#log_failed, logger, #logger, logger=, logger_exception, #logger_exception
Constructor Details
#initialize(uri) ⇒ ChoutiRss
Returns a new instance of ChoutiRss.
66 67 68 69 70 71 72 73 |
# File 'lib/gozap_rss/chouti_rss.rb', line 66 def initialize uri @url = uri @items = [] @ttl = 120 @content = get_feed_content uri parse_rss end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
64 65 66 |
# File 'lib/gozap_rss/chouti_rss.rb', line 64 def items @items end |