Class: Popularity::Github
- Defined in:
- lib/popularity/networks/github.rb
Instance Attribute Summary
Attributes inherited from Crawler
Instance Method Summary collapse
Methods inherited from Crawler
#as_json, #async_done?, #fetch, #fetch_async, #has_response?, #host, #initialize, #name, property_names, #response, #response_json, stats, #total
Constructor Details
This class inherits a constructor from Popularity::Crawler
Instance Method Details
#stars ⇒ Object
5 6 7 |
# File 'lib/popularity/networks/github.rb', line 5 def stars response_json.size end |
#valid? ⇒ Boolean
9 10 11 |
# File 'lib/popularity/networks/github.rb', line 9 def valid? host == 'github.com' end |