Class: Infostrada::Squad
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Infostrada::Squad
- Defined in:
- lib/infostrada/squad.rb
Constant Summary collapse
- URL =
'/GetSquad'
Constants inherited from BaseRequest
Class Method Summary collapse
Methods inherited from BaseRequest
Class Method Details
.where(options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/infostrada/squad.rb', line 7 def self.where( = {}) edition_id = .delete(:edition_id) team_id = .delete(:team_id) list = get!(URL, query: { editionid: edition_id, teamid: team_id }) list.map do |player_hash| Player.new(player_hash) end end |