Class: SportsApi::Football::FixtureStatisticResource
- Defined in:
- lib/sports_api/football/resources/fixtures/fixture_statistic.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(fixture:, **params) ⇒ Object
Arguments: fixture: [Integer](required) - The fixture ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(fixture:, **params) ⇒ Object
Arguments: fixture: [Integer](required) - The fixture ID. team: [Integer](optional) - The team ID. type: [String](optional) - The type of statistics [“Shots on Goal”, “Corner Kicks”, etc].
10 11 12 13 |
# File 'lib/sports_api/football/resources/fixtures/fixture_statistic.rb', line 10 def list(fixture:, **params) response = get_request('fixtures/statistics', params: { fixture:, **params }) Collection.from_response(response, type: SportsApi::Football::FixtureStatistic) end |