Method: Infostrada::Squad.where
- Defined in:
- lib/infostrada/squad.rb
.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 |