Class: SportsApi::Football::TrophyResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sports_api/football/resources/trophy.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#get_request, #initialize

Constructor Details

This class inherits a constructor from SportsApi::Resource

Instance Method Details

#list(**params) ⇒ Object

Arguments: player: [Integer](optional) - The player ID. coach: [Integer](optional) - The coach ID.



9
10
11
12
# File 'lib/sports_api/football/resources/trophy.rb', line 9

def list(**params)
  response = get_request('trophies', params:)
  Collection.from_response(response, type: SportsApi::Football::Trophy)
end