Class: Relevant::Github
- Inherits:
-
Object
- Object
- Relevant::Github
- Includes:
- Widget
- Defined in:
- lib/relevant/github.rb
Constant Summary collapse
- Version =
"0.0.1"
Instance Method Summary collapse
Instance Method Details
#activities ⇒ Object
30 31 32 |
# File 'lib/relevant/github.rb', line 30 def activities [:limit] ? feed.entries.first([:limit].to_i) : feed.entries end |
#feed ⇒ Object
34 35 36 37 |
# File 'lib/relevant/github.rb', line 34 def feed raise ArgumentError, "Github RSS feed is not set" unless [:rss_feed].present? @feed ||= Feedzirra::Feed.fetch_and_parse([:rss_feed]) end |