Class: Infostrada::TeamRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Infostrada::TeamRequest
- Defined in:
- lib/infostrada/team_request.rb
Constant Summary collapse
- URLS =
{ list: '/GetTeamList' }
Constants inherited from BaseRequest
Class Method Summary collapse
Methods inherited from BaseRequest
Class Method Details
.get_edition(edition_id) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/infostrada/team_request.rb', line 9 def self.get_edition(edition_id) list = get!(URLS[:list], query: { editionid: edition_id.to_i }) teams = [] list.each do |team_hash| teams << Team.new(team_hash.merge('edition_id' => edition_id.to_i), '') end teams end |