Class: Fushin::RSS
- Inherits:
-
Object
- Object
- Fushin::RSS
- Defined in:
- lib/fushin/rss.rb
Constant Summary collapse
- BASE_URL =
"https://www.inoreader.com/stream/user/1006141524/tag/%E4%B8%8D%E5%AF%A9%E3%83%A1%E3%83%BC%E3%83%AB"
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
21 22 23 24 25 26 |
# File 'lib/fushin/rss.rb', line 21 def body res = HTTP.get(BASE_URL) return nil unless res.code == 200 res.body.to_s end |
#feed ⇒ Object
11 12 13 |
# File 'lib/fushin/rss.rb', line 11 def feed @feed ||= ::RSS::Parser.parse(body) end |