module PokeAPI::Berries
Overview
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
Defined in:
pokeapi/berries.crInstance Method Summary
- 
        #berry(identifier : String | UInt32) : PokeAPI::Types::Berry
        
          
Returns a
PokeAPI::Types::Berrybased on the given identifier. - 
        #berry_firmness(identifier : String | UInt32) : PokeAPI::Types::BerryFirmness
        
          
Returns a
PokeAPI::Types::BerryFirmnessbased on the given identifier. - 
        #berry_flavor(identifier : String | UInt32) : PokeAPI::Types::BerryFlavor
        
          
Returns a
PokeAPI::Types::BerryFlavorbased on the given identifier. 
Instance Method Detail
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