Module: PokeApiClient

Defined in:
lib/pokeapi_client/version.rb,
lib/pokeapi_client.rb,
lib/pokeapi_client/api_error.rb,
lib/pokeapi_client/api_client.rb,
lib/pokeapi_client/api/item_api.rb,
lib/pokeapi_client/api/move_api.rb,
lib/pokeapi_client/api/stat_api.rb,
lib/pokeapi_client/api/type_api.rb,
lib/pokeapi_client/api/berry_api.rb,
lib/pokeapi_client/configuration.rb,
lib/pokeapi_client/api/gender_api.rb,
lib/pokeapi_client/api/nature_api.rb,
lib/pokeapi_client/api/region_api.rb,
lib/pokeapi_client/api/ability_api.rb,
lib/pokeapi_client/api/machine_api.rb,
lib/pokeapi_client/api/pokedex_api.rb,
lib/pokeapi_client/api/pokemon_api.rb,
lib/pokeapi_client/api/version_api.rb,
lib/pokeapi_client/api/language_api.rb,
lib/pokeapi_client/api/location_api.rb,
lib/pokeapi_client/api/egg_group_api.rb,
lib/pokeapi_client/api/generation_api.rb,
lib/pokeapi_client/api/growth_rate_api.rb,
lib/pokeapi_client/api/item_pocket_api.rb,
lib/pokeapi_client/api/move_target_api.rb,
lib/pokeapi_client/api/berry_flavor_api.rb,
lib/pokeapi_client/api/contest_type_api.rb,
lib/pokeapi_client/api/move_ailment_api.rb,
lib/pokeapi_client/api/pokemon_form_api.rb,
lib/pokeapi_client/api/item_category_api.rb,
lib/pokeapi_client/api/location_area_api.rb,
lib/pokeapi_client/api/move_category_api.rb,
lib/pokeapi_client/api/pal_park_area_api.rb,
lib/pokeapi_client/api/pokemon_color_api.rb,
lib/pokeapi_client/api/pokemon_shape_api.rb,
lib/pokeapi_client/api/version_group_api.rb,
lib/pokeapi_client/api/berry_firmness_api.rb,
lib/pokeapi_client/api/characteristic_api.rb,
lib/pokeapi_client/api/contest_effect_api.rb,
lib/pokeapi_client/api/item_attribute_api.rb,
lib/pokeapi_client/api/evolution_chain_api.rb,
lib/pokeapi_client/api/pokeathlon_stat_api.rb,
lib/pokeapi_client/api/pokemon_habitat_api.rb,
lib/pokeapi_client/api/pokemon_species_api.rb,
lib/pokeapi_client/api/encounter_method_api.rb,
lib/pokeapi_client/api/evolution_trigger_api.rb,
lib/pokeapi_client/api/item_fling_effect_api.rb,
lib/pokeapi_client/api/move_battle_style_api.rb,
lib/pokeapi_client/api/move_damage_class_api.rb,
lib/pokeapi_client/api/move_learn_method_api.rb,
lib/pokeapi_client/api/encounter_condition_api.rb,
lib/pokeapi_client/api/super_contest_effect_api.rb,
lib/pokeapi_client/api/encounter_condition_value_api.rb

Overview

#

#No description provided (generated by Openapi Generator github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 20220523 Contact: [email protected] Generated by: openapi-generator.tech Generator version: 7.6.0

Defined Under Namespace

Classes: AbilityApi, ApiClient, ApiError, BerryApi, BerryFirmnessApi, BerryFlavorApi, CharacteristicApi, Configuration, ContestEffectApi, ContestTypeApi, EggGroupApi, EncounterConditionApi, EncounterConditionValueApi, EncounterMethodApi, EvolutionChainApi, EvolutionTriggerApi, GenderApi, GenerationApi, GrowthRateApi, ItemApi, ItemAttributeApi, ItemCategoryApi, ItemFlingEffectApi, ItemPocketApi, LanguageApi, LocationApi, LocationAreaApi, MachineApi, MoveAilmentApi, MoveApi, MoveBattleStyleApi, MoveCategoryApi, MoveDamageClassApi, MoveLearnMethodApi, MoveTargetApi, NatureApi, PalParkAreaApi, PokeathlonStatApi, PokedexApi, PokemonApi, PokemonColorApi, PokemonFormApi, PokemonHabitatApi, PokemonShapeApi, PokemonSpeciesApi, RegionApi, StatApi, SuperContestEffectApi, TypeApi, VersionApi, VersionGroupApi

Constant Summary collapse

VERSION =
'1.1.0'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

PokeApiClient.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



79
80
81
82
83
84
85
# File 'lib/pokeapi_client.rb', line 79

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end