PokeAPI::Contests
The PokeAPI::Contests module contains methods to get data from the different
endpoints in the Contests group.
NOTE: see https://pokeapi.co/docs/v2#contests-section
Instance methods
Returns a PokeAPI::Types::ContestEffect based on the given id.
An ArgumentError is raised if the id is 0
Returns a PokeAPI::Types::ContestType based on the given identifier.
The identifier can be either the id or the name of the desired contest type.
Valid contest types (2021-05-07):
+----+--------+
| id | name |
+----+--------+
| 1 | cool |
| 2 | beauty |
| 3 | cute |
| 4 | smart |
| 5 | tough |
+----+--------+
An ArgumentError is raised if the identifier is an empty string or 0
Returns a PokeAPI::Types::SuperContestEffect based on the given id.
An ArgumentError is raised if the id is 0