Module: FoldingAtHomeClient::Teams
- Extended by:
- Request
- Defined in:
- lib/folding_at_home_client/teams.rb
Constant Summary
Constants included from Request
Request::API_URL, Request::HEADERS
Class Method Summary collapse
Methods included from Request
connection, format_response, request, request_and_instantiate_objects, request_unencoded
Class Method Details
.count ⇒ Object
7 8 9 10 11 |
# File 'lib/folding_at_home_client/teams.rb', line 7 def self.count endpoint = '/team/count' request(endpoint:).first end |
.top(month: nil, year: nil) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/folding_at_home_client/teams.rb', line 13 def self.top(month: nil, year: nil) endpoint = '/team/monthly' params = { month:, year:, } request_and_instantiate_objects( endpoint:, params:, object_class: Team ) end |