PokeAPI::Berries
The PokeAPI::Berries module contains methods to get data from the different
endpoints in the Berries group.
NOTE: see https://pokeapi.co/docs/v2#berries-section
Instance methods
Returns a PokeAPI::Types::Berry based on the given identifier.
The identifier can be either the id or the name of the desired berry.
An ArgumentError is raised if the identifier is an empty string or 0
Returns a PokeAPI::Types::BerryFirmness based on the given identifier.
The identifier can be either the id or the name of the desired berry firmness.
Valid berry firmnesses (2021-05-07):
+----+------------+
| id | name |
+----+------------+
| 1 | very-soft |
| 2 | soft |
| 3 | hard |
| 4 | very-hard |
| 5 | super-hard |
+----+------------+
An ArgumentError is raised if the identifier is an empty string or 0
Returns a PokeAPI::Types::BerryFlavor based on the given identifier.
The identifier can be either the id or the name of the desired berry flavor.
Valid berry flavors (2021-05-07):
+----+--------+
| id | name |
+----+--------+
| 1 | spicy |
| 2 | dry |
| 3 | sweet |
| 4 | bitter |
| 5 | sour |
+----+--------+
An ArgumentError is raised if the identifier is an empty string or 0