pokeapi_client 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +93 -24
- data/README.md +418 -110
- data/bin/byebug +1 -12
- data/bin/coderay +1 -12
- data/bin/htmldiff +1 -12
- data/bin/ldiff +1 -12
- data/bin/pry +1 -12
- data/bin/racc +1 -12
- data/bin/rake +1 -12
- data/bin/rspec +1 -12
- data/bin/rubocop +1 -12
- data/bin/ruby-parse +1 -12
- data/bin/ruby-rewrite +1 -12
- data/docs/AbilityChange.md +20 -0
- data/docs/AbilityChangeEffectText.md +20 -0
- data/docs/AbilityDetail.md +34 -0
- data/docs/AbilityDetailPokemonInner.md +22 -0
- data/docs/AbilityDetailPokemonInnerPokemon.md +20 -0
- data/docs/AbilityEffectText.md +22 -0
- data/docs/AbilityFlavorText.md +22 -0
- data/docs/AbilityName.md +20 -0
- data/docs/AbilitySummary.md +20 -0
- data/docs/BerriesApi.md +481 -0
- data/docs/BerryDetail.md +40 -0
- data/docs/BerryDetailFlavorsInner.md +20 -0
- data/docs/BerryDetailFlavorsInnerFlavor.md +20 -0
- data/docs/BerryFirmnessDetail.md +24 -0
- data/docs/BerryFirmnessName.md +20 -0
- data/docs/BerryFirmnessSummary.md +20 -0
- data/docs/BerryFlavorDetail.md +26 -0
- data/docs/BerryFlavorDetailBerriesInner.md +20 -0
- data/docs/BerryFlavorDetailBerriesInnerBerry.md +20 -0
- data/docs/BerryFlavorName.md +20 -0
- data/docs/BerryFlavorSummary.md +20 -0
- data/docs/BerrySummary.md +20 -0
- data/docs/CharacteristicDescription.md +20 -0
- data/docs/CharacteristicDetail.md +26 -0
- data/docs/CharacteristicSummary.md +18 -0
- data/docs/ContestEffectDetail.md +26 -0
- data/docs/ContestEffectEffectText.md +20 -0
- data/docs/ContestEffectFlavorText.md +20 -0
- data/docs/ContestEffectSummary.md +18 -0
- data/docs/ContestTypeDetail.md +24 -0
- data/docs/ContestTypeName.md +22 -0
- data/docs/ContestTypeSummary.md +20 -0
- data/docs/ContestsApi.md +481 -0
- data/docs/EggGroupDetail.md +24 -0
- data/docs/EggGroupDetailPokemonSpeciesInner.md +20 -0
- data/docs/EggGroupName.md +20 -0
- data/docs/EggGroupSummary.md +20 -0
- data/docs/EncounterConditionDetail.md +24 -0
- data/docs/EncounterConditionName.md +20 -0
- data/docs/EncounterConditionSummary.md +20 -0
- data/docs/EncounterConditionValueDetail.md +24 -0
- data/docs/EncounterConditionValueName.md +20 -0
- data/docs/EncounterConditionValueSummary.md +20 -0
- data/docs/EncounterMethodDetail.md +24 -0
- data/docs/EncounterMethodName.md +20 -0
- data/docs/EncounterMethodSummary.md +20 -0
- data/docs/EncountersApi.md +481 -0
- data/docs/EvolutionApi.md +323 -0
- data/docs/EvolutionChainDetail.md +22 -0
- data/docs/EvolutionChainDetailChain.md +24 -0
- data/docs/EvolutionChainDetailChainEvolvesToInner.md +22 -0
- data/docs/EvolutionChainDetailChainEvolvesToInnerEvolutionDetailsInner.md +52 -0
- data/docs/EvolutionChainDetailChainEvolvesToInnerEvolutionDetailsInnerGender.md +20 -0
- data/docs/EvolutionChainSummary.md +18 -0
- data/docs/EvolutionTriggerDetail.md +24 -0
- data/docs/EvolutionTriggerName.md +20 -0
- data/docs/EvolutionTriggerSummary.md +20 -0
- data/docs/Experience.md +20 -0
- data/docs/GamesApi.md +639 -0
- data/docs/GenderDetail.md +24 -0
- data/docs/GenderDetailPokemonSpeciesDetailsInner.md +20 -0
- data/docs/GenderSummary.md +20 -0
- data/docs/GenerationDetail.md +34 -0
- data/docs/GenerationName.md +20 -0
- data/docs/GenerationSummary.md +20 -0
- data/docs/GrowthRateDescription.md +20 -0
- data/docs/GrowthRateDetail.md +28 -0
- data/docs/GrowthRateSummary.md +20 -0
- data/docs/ItemAttributeDescription.md +20 -0
- data/docs/ItemAttributeDetail.md +26 -0
- data/docs/ItemAttributeName.md +20 -0
- data/docs/ItemAttributeSummary.md +20 -0
- data/docs/ItemCategoryDetail.md +26 -0
- data/docs/ItemCategoryName.md +20 -0
- data/docs/ItemCategorySummary.md +20 -0
- data/docs/ItemDetail.md +46 -0
- data/docs/ItemDetailBabyTriggerFor.md +18 -0
- data/docs/ItemDetailHeldByPokemonInner.md +20 -0
- data/docs/ItemDetailHeldByPokemonInnerVersionDetailsInner.md +20 -0
- data/docs/ItemDetailMachinesInner.md +20 -0
- data/docs/ItemDetailSprites.md +18 -0
- data/docs/ItemEffectText.md +22 -0
- data/docs/ItemFlavorText.md +22 -0
- data/docs/ItemFlingEffectDetail.md +24 -0
- data/docs/ItemFlingEffectEffectText.md +20 -0
- data/docs/ItemFlingEffectSummary.md +20 -0
- data/docs/ItemGameIndex.md +20 -0
- data/docs/ItemName.md +20 -0
- data/docs/ItemPocketDetail.md +24 -0
- data/docs/ItemPocketName.md +20 -0
- data/docs/ItemPocketSummary.md +20 -0
- data/docs/ItemSummary.md +20 -0
- data/docs/ItemsApi.md +797 -0
- data/docs/LanguageDetail.md +28 -0
- data/docs/LanguageName.md +20 -0
- data/docs/LanguageSummary.md +20 -0
- data/docs/LocationApi.md +530 -30
- data/docs/LocationAreaDetail.md +30 -0
- data/docs/LocationAreaDetailEncounterMethodRatesInner.md +20 -0
- data/docs/LocationAreaDetailEncounterMethodRatesInnerVersionDetailsInner.md +20 -0
- data/docs/LocationAreaDetailPokemonEncountersInner.md +20 -0
- data/docs/LocationAreaDetailPokemonEncountersInnerVersionDetailsInner.md +22 -0
- data/docs/LocationAreaDetailPokemonEncountersInnerVersionDetailsInnerEncounterDetails.md +26 -0
- data/docs/LocationAreaName.md +20 -0
- data/docs/LocationAreaSummary.md +20 -0
- data/docs/LocationDetail.md +28 -0
- data/docs/LocationGameIndex.md +20 -0
- data/docs/LocationName.md +20 -0
- data/docs/LocationSummary.md +20 -0
- data/docs/MachineDetail.md +24 -0
- data/docs/MachineSummary.md +18 -0
- data/docs/MachinesApi.md +165 -0
- data/docs/MoveBattleStyleDetail.md +22 -0
- data/docs/MoveBattleStyleName.md +20 -0
- data/docs/MoveBattleStyleSummary.md +20 -0
- data/docs/MoveChange.md +30 -0
- data/docs/MoveChangeEffectEntriesInner.md +22 -0
- data/docs/MoveDamageClassDescription.md +20 -0
- data/docs/MoveDamageClassDetail.md +26 -0
- data/docs/MoveDamageClassName.md +20 -0
- data/docs/MoveDamageClassSummary.md +20 -0
- data/docs/MoveDetail.md +64 -0
- data/docs/MoveDetailContestCombos.md +20 -0
- data/docs/MoveDetailContestCombosNormal.md +20 -0
- data/docs/MoveDetailEffectChangesInner.md +20 -0
- data/docs/MoveDetailEffectChangesInnerEffectEntriesInner.md +20 -0
- data/docs/MoveDetailMachinesInner.md +20 -0
- data/docs/MoveDetailMachinesInnerMachine.md +18 -0
- data/docs/MoveDetailStatChangesInner.md +20 -0
- data/docs/MoveFlavorText.md +22 -0
- data/docs/MoveLearnMethodDescription.md +20 -0
- data/docs/MoveLearnMethodDetail.md +26 -0
- data/docs/MoveLearnMethodName.md +20 -0
- data/docs/MoveLearnMethodSummary.md +20 -0
- data/docs/MoveMeta.md +40 -0
- data/docs/MoveMetaAilmentDetail.md +24 -0
- data/docs/MoveMetaAilmentName.md +20 -0
- data/docs/MoveMetaAilmentSummary.md +20 -0
- data/docs/MoveMetaCategoryDescription.md +20 -0
- data/docs/MoveMetaCategoryDetail.md +24 -0
- data/docs/MoveMetaCategorySummary.md +20 -0
- data/docs/MoveName.md +20 -0
- data/docs/MoveSummary.md +20 -0
- data/docs/MoveTargetDescription.md +20 -0
- data/docs/MoveTargetDetail.md +26 -0
- data/docs/MoveTargetName.md +20 -0
- data/docs/MoveTargetSummary.md +20 -0
- data/docs/MovesApi.md +955 -0
- data/docs/NatureBattleStylePreference.md +22 -0
- data/docs/NatureDetail.md +36 -0
- data/docs/NatureDetailPokeathlonStatChangesInner.md +20 -0
- data/docs/NatureName.md +20 -0
- data/docs/NatureSummary.md +20 -0
- data/docs/PaginatedAbilitySummaryList.md +24 -0
- data/docs/PaginatedBerryFirmnessSummaryList.md +24 -0
- data/docs/PaginatedBerryFlavorSummaryList.md +24 -0
- data/docs/PaginatedBerrySummaryList.md +24 -0
- data/docs/PaginatedCharacteristicSummaryList.md +24 -0
- data/docs/PaginatedContestEffectSummaryList.md +24 -0
- data/docs/PaginatedContestTypeSummaryList.md +24 -0
- data/docs/PaginatedEggGroupSummaryList.md +24 -0
- data/docs/PaginatedEncounterConditionSummaryList.md +24 -0
- data/docs/PaginatedEncounterConditionValueSummaryList.md +24 -0
- data/docs/PaginatedEncounterMethodSummaryList.md +24 -0
- data/docs/PaginatedEvolutionChainSummaryList.md +24 -0
- data/docs/PaginatedEvolutionTriggerSummaryList.md +24 -0
- data/docs/PaginatedGenderSummaryList.md +24 -0
- data/docs/PaginatedGenerationSummaryList.md +24 -0
- data/docs/PaginatedGrowthRateSummaryList.md +24 -0
- data/docs/PaginatedItemAttributeSummaryList.md +24 -0
- data/docs/PaginatedItemCategorySummaryList.md +24 -0
- data/docs/PaginatedItemFlingEffectSummaryList.md +24 -0
- data/docs/PaginatedItemPocketSummaryList.md +24 -0
- data/docs/PaginatedItemSummaryList.md +24 -0
- data/docs/PaginatedLanguageSummaryList.md +24 -0
- data/docs/PaginatedLocationAreaSummaryList.md +24 -0
- data/docs/PaginatedLocationSummaryList.md +24 -0
- data/docs/PaginatedMachineSummaryList.md +24 -0
- data/docs/PaginatedMoveBattleStyleSummaryList.md +24 -0
- data/docs/PaginatedMoveDamageClassSummaryList.md +24 -0
- data/docs/PaginatedMoveLearnMethodSummaryList.md +24 -0
- data/docs/PaginatedMoveMetaAilmentSummaryList.md +24 -0
- data/docs/PaginatedMoveMetaCategorySummaryList.md +24 -0
- data/docs/PaginatedMoveSummaryList.md +24 -0
- data/docs/PaginatedMoveTargetSummaryList.md +24 -0
- data/docs/PaginatedNatureSummaryList.md +24 -0
- data/docs/PaginatedPalParkAreaSummaryList.md +24 -0
- data/docs/PaginatedPokeathlonStatSummaryList.md +24 -0
- data/docs/PaginatedPokedexSummaryList.md +24 -0
- data/docs/PaginatedPokemonColorSummaryList.md +24 -0
- data/docs/PaginatedPokemonFormSummaryList.md +24 -0
- data/docs/PaginatedPokemonHabitatSummaryList.md +24 -0
- data/docs/PaginatedPokemonShapeSummaryList.md +24 -0
- data/docs/PaginatedPokemonSpeciesSummaryList.md +24 -0
- data/docs/PaginatedPokemonSummaryList.md +24 -0
- data/docs/PaginatedRegionSummaryList.md +24 -0
- data/docs/PaginatedStatSummaryList.md +24 -0
- data/docs/PaginatedSuperContestEffectSummaryList.md +24 -0
- data/docs/PaginatedTypeSummaryList.md +24 -0
- data/docs/PaginatedVersionGroupSummaryList.md +24 -0
- data/docs/PaginatedVersionSummaryList.md +24 -0
- data/docs/PalParkAreaDetail.md +24 -0
- data/docs/PalParkAreaDetailPokemonEncountersInner.md +22 -0
- data/docs/PalParkAreaName.md +20 -0
- data/docs/PalParkAreaSummary.md +20 -0
- data/docs/PokeathlonStatDetail.md +24 -0
- data/docs/PokeathlonStatDetailAffectingNatures.md +20 -0
- data/docs/PokeathlonStatDetailAffectingNaturesDecreaseInner.md +20 -0
- data/docs/PokeathlonStatDetailAffectingNaturesIncreaseInner.md +20 -0
- data/docs/PokeathlonStatName.md +20 -0
- data/docs/PokeathlonStatSummary.md +20 -0
- data/docs/PokedexDescription.md +20 -0
- data/docs/PokedexDetail.md +32 -0
- data/docs/PokedexDetailPokemonEntriesInner.md +20 -0
- data/docs/PokedexName.md +20 -0
- data/docs/PokedexSummary.md +20 -0
- data/docs/PokemonApi.md +2430 -32
- data/docs/PokemonColorDetail.md +24 -0
- data/docs/PokemonColorName.md +20 -0
- data/docs/PokemonColorSummary.md +20 -0
- data/docs/PokemonDetail.md +56 -0
- data/docs/PokemonDetailAbilitiesInner.md +22 -0
- data/docs/PokemonDetailCries.md +20 -0
- data/docs/PokemonDetailHeldItems.md +20 -0
- data/docs/PokemonDetailMovesInner.md +20 -0
- data/docs/PokemonDetailMovesInnerVersionGroupDetailsInner.md +22 -0
- data/docs/PokemonDetailPastAbilitiesInner.md +20 -0
- data/docs/PokemonDetailPastTypesInner.md +20 -0
- data/docs/PokemonDetailSprites.md +18 -0
- data/docs/PokemonDetailTypesInner.md +20 -0
- data/docs/PokemonDexEntry.md +20 -0
- data/docs/PokemonFormDetail.md +44 -0
- data/docs/PokemonFormDetailFormNamesInner.md +20 -0
- data/docs/PokemonFormDetailSprites.md +18 -0
- data/docs/PokemonFormSummary.md +20 -0
- data/docs/PokemonGameIndex.md +20 -0
- data/docs/PokemonHabitatDetail.md +24 -0
- data/docs/PokemonHabitatName.md +20 -0
- data/docs/PokemonHabitatSummary.md +20 -0
- data/docs/PokemonShapeDetail.md +26 -0
- data/docs/PokemonShapeDetailAwesomeNamesInner.md +20 -0
- data/docs/PokemonShapeDetailNamesInner.md +20 -0
- data/docs/PokemonShapeSummary.md +20 -0
- data/docs/PokemonSpeciesDescription.md +20 -0
- data/docs/PokemonSpeciesDetail.md +70 -0
- data/docs/PokemonSpeciesDetailGeneraInner.md +20 -0
- data/docs/PokemonSpeciesDetailPalParkEncountersInner.md +22 -0
- data/docs/PokemonSpeciesDetailVarietiesInner.md +20 -0
- data/docs/PokemonSpeciesFlavorText.md +22 -0
- data/docs/PokemonSpeciesSummary.md +20 -0
- data/docs/PokemonStat.md +22 -0
- data/docs/PokemonSummary.md +20 -0
- data/docs/RegionDetail.md +30 -0
- data/docs/RegionName.md +20 -0
- data/docs/RegionSummary.md +20 -0
- data/docs/StatDetail.md +34 -0
- data/docs/StatDetailAffectingMoves.md +20 -0
- data/docs/StatDetailAffectingMovesIncreaseInner.md +20 -0
- data/docs/StatDetailAffectingNatures.md +20 -0
- data/docs/StatName.md +20 -0
- data/docs/StatSummary.md +20 -0
- data/docs/SuperContestEffectDetail.md +24 -0
- data/docs/SuperContestEffectFlavorText.md +20 -0
- data/docs/SuperContestEffectSummary.md +18 -0
- data/docs/TypeDetail.md +38 -0
- data/docs/TypeDetailDamageRelations.md +28 -0
- data/docs/TypeDetailPastDamageRelationsInner.md +20 -0
- data/docs/TypeDetailPastDamageRelationsInnerDamageRelations.md +28 -0
- data/docs/TypeDetailPokemonInner.md +20 -0
- data/docs/TypeDetailPokemonInnerPokemon.md +20 -0
- data/docs/TypeDetailSpritesValueValue.md +18 -0
- data/docs/TypeGameIndex.md +20 -0
- data/docs/TypeSummary.md +20 -0
- data/docs/UtilityApi.md +165 -0
- data/docs/VersionDetail.md +24 -0
- data/docs/VersionGroupDetail.md +32 -0
- data/docs/VersionGroupSummary.md +20 -0
- data/docs/VersionName.md +20 -0
- data/docs/VersionSummary.md +20 -0
- data/lib/pokeapi_client/api/berries_api.rb +409 -0
- data/lib/pokeapi_client/api/contests_api.rb +409 -0
- data/lib/pokeapi_client/api/encounters_api.rb +409 -0
- data/lib/pokeapi_client/api/evolution_api.rb +280 -0
- data/lib/pokeapi_client/api/games_api.rb +538 -0
- data/lib/pokeapi_client/api/items_api.rb +667 -0
- data/lib/pokeapi_client/api/location_api.rb +422 -27
- data/lib/pokeapi_client/api/machines_api.rb +151 -0
- data/lib/pokeapi_client/api/moves_api.rb +796 -0
- data/lib/pokeapi_client/api/pokemon_api.rb +1975 -33
- data/lib/pokeapi_client/api/utility_api.rb +151 -0
- data/lib/pokeapi_client/api_client.rb +18 -14
- data/lib/pokeapi_client/api_error.rb +4 -4
- data/lib/pokeapi_client/api_model_base.rb +88 -0
- data/lib/pokeapi_client/configuration.rb +28 -4
- data/lib/pokeapi_client/models/ability_change.rb +192 -0
- data/lib/pokeapi_client/models/ability_change_effect_text.rb +199 -0
- data/lib/pokeapi_client/models/ability_detail.rb +374 -0
- data/lib/pokeapi_client/models/ability_detail_pokemon_inner.rb +216 -0
- data/lib/pokeapi_client/models/ability_detail_pokemon_inner_pokemon.rb +190 -0
- data/lib/pokeapi_client/models/ability_effect_text.rb +234 -0
- data/lib/pokeapi_client/models/ability_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/ability_name.rb +199 -0
- data/lib/pokeapi_client/models/ability_summary.rb +199 -0
- data/lib/pokeapi_client/models/berry_detail.rb +461 -0
- data/lib/pokeapi_client/models/berry_detail_flavors_inner.rb +190 -0
- data/lib/pokeapi_client/models/berry_detail_flavors_inner_flavor.rb +158 -0
- data/lib/pokeapi_client/models/berry_firmness_detail.rb +255 -0
- data/lib/pokeapi_client/models/berry_firmness_name.rb +199 -0
- data/lib/pokeapi_client/models/berry_firmness_summary.rb +199 -0
- data/lib/pokeapi_client/models/berry_flavor_detail.rb +281 -0
- data/lib/pokeapi_client/models/berry_flavor_detail_berries_inner.rb +190 -0
- data/lib/pokeapi_client/models/berry_flavor_detail_berries_inner_berry.rb +158 -0
- data/lib/pokeapi_client/models/berry_flavor_name.rb +199 -0
- data/lib/pokeapi_client/models/berry_flavor_summary.rb +199 -0
- data/lib/pokeapi_client/models/berry_summary.rb +199 -0
- data/lib/pokeapi_client/models/characteristic_description.rb +192 -0
- data/lib/pokeapi_client/models/characteristic_detail.rb +272 -0
- data/lib/pokeapi_client/models/characteristic_summary.rb +164 -0
- data/lib/pokeapi_client/models/contest_effect_detail.rb +272 -0
- data/lib/pokeapi_client/models/contest_effect_effect_text.rb +199 -0
- data/lib/pokeapi_client/models/contest_effect_flavor_text.rb +199 -0
- data/lib/pokeapi_client/models/contest_effect_summary.rb +164 -0
- data/lib/pokeapi_client/models/contest_type_detail.rb +253 -0
- data/lib/pokeapi_client/models/contest_type_name.rb +234 -0
- data/lib/pokeapi_client/models/contest_type_summary.rb +199 -0
- data/lib/pokeapi_client/models/egg_group_detail.rb +255 -0
- data/lib/pokeapi_client/models/egg_group_detail_pokemon_species_inner.rb +158 -0
- data/lib/pokeapi_client/models/egg_group_name.rb +199 -0
- data/lib/pokeapi_client/models/egg_group_summary.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_detail.rb +255 -0
- data/lib/pokeapi_client/models/encounter_condition_name.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_summary.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_value_detail.rb +253 -0
- data/lib/pokeapi_client/models/encounter_condition_value_name.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_value_summary.rb +199 -0
- data/lib/pokeapi_client/models/encounter_method_detail.rb +237 -0
- data/lib/pokeapi_client/models/encounter_method_name.rb +199 -0
- data/lib/pokeapi_client/models/encounter_method_summary.rb +199 -0
- data/lib/pokeapi_client/models/evolution_chain_detail.rb +216 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain.rb +246 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain_evolves_to_inner.rb +218 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner.rb +606 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner_gender.rb +190 -0
- data/lib/pokeapi_client/models/evolution_chain_summary.rb +164 -0
- data/lib/pokeapi_client/models/evolution_trigger_detail.rb +255 -0
- data/lib/pokeapi_client/models/evolution_trigger_name.rb +199 -0
- data/lib/pokeapi_client/models/evolution_trigger_summary.rb +199 -0
- data/lib/pokeapi_client/models/experience.rb +190 -0
- data/lib/pokeapi_client/models/gender_detail.rb +255 -0
- data/lib/pokeapi_client/models/gender_detail_pokemon_species_details_inner.rb +190 -0
- data/lib/pokeapi_client/models/gender_summary.rb +199 -0
- data/lib/pokeapi_client/models/generation_detail.rb +393 -0
- data/lib/pokeapi_client/models/generation_name.rb +199 -0
- data/lib/pokeapi_client/models/generation_summary.rb +199 -0
- data/lib/pokeapi_client/models/growth_rate_description.rb +192 -0
- data/lib/pokeapi_client/models/growth_rate_detail.rb +318 -0
- data/lib/pokeapi_client/models/growth_rate_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_attribute_description.rb +192 -0
- data/lib/pokeapi_client/models/item_attribute_detail.rb +283 -0
- data/lib/pokeapi_client/models/item_attribute_name.rb +199 -0
- data/lib/pokeapi_client/models/item_attribute_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_category_detail.rb +281 -0
- data/lib/pokeapi_client/models/item_category_name.rb +199 -0
- data/lib/pokeapi_client/models/item_category_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_detail.rb +519 -0
- data/lib/pokeapi_client/models/item_detail_baby_trigger_for.rb +164 -0
- data/lib/pokeapi_client/models/item_detail_held_by_pokemon_inner.rb +192 -0
- data/lib/pokeapi_client/models/item_detail_held_by_pokemon_inner_version_details_inner.rb +190 -0
- data/lib/pokeapi_client/models/item_detail_machines_inner.rb +190 -0
- data/lib/pokeapi_client/models/item_detail_sprites.rb +164 -0
- data/lib/pokeapi_client/models/item_effect_text.rb +234 -0
- data/lib/pokeapi_client/models/item_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/item_fling_effect_detail.rb +255 -0
- data/lib/pokeapi_client/models/item_fling_effect_effect_text.rb +199 -0
- data/lib/pokeapi_client/models/item_fling_effect_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_game_index.rb +190 -0
- data/lib/pokeapi_client/models/item_name.rb +199 -0
- data/lib/pokeapi_client/models/item_pocket_detail.rb +255 -0
- data/lib/pokeapi_client/models/item_pocket_name.rb +199 -0
- data/lib/pokeapi_client/models/item_pocket_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_summary.rb +199 -0
- data/lib/pokeapi_client/models/language_detail.rb +306 -0
- data/lib/pokeapi_client/models/language_name.rb +199 -0
- data/lib/pokeapi_client/models/language_summary.rb +199 -0
- data/lib/pokeapi_client/models/location_area_detail.rb +335 -0
- data/lib/pokeapi_client/models/location_area_detail_encounter_method_rates_inner.rb +192 -0
- data/lib/pokeapi_client/models/location_area_detail_encounter_method_rates_inner_version_details_inner.rb +190 -0
- data/lib/pokeapi_client/models/location_area_detail_pokemon_encounters_inner.rb +192 -0
- data/lib/pokeapi_client/models/location_area_detail_pokemon_encounters_inner_version_details_inner.rb +216 -0
- data/lib/pokeapi_client/models/location_area_detail_pokemon_encounters_inner_version_details_inner_encounter_details.rb +251 -0
- data/lib/pokeapi_client/models/location_area_name.rb +199 -0
- data/lib/pokeapi_client/models/location_area_summary.rb +199 -0
- data/lib/pokeapi_client/models/location_detail.rb +309 -0
- data/lib/pokeapi_client/models/location_game_index.rb +190 -0
- data/lib/pokeapi_client/models/location_name.rb +199 -0
- data/lib/pokeapi_client/models/location_summary.rb +199 -0
- data/lib/pokeapi_client/models/machine_detail.rb +242 -0
- data/lib/pokeapi_client/models/machine_summary.rb +164 -0
- data/lib/pokeapi_client/models/move_battle_style_detail.rb +227 -0
- data/lib/pokeapi_client/models/move_battle_style_name.rb +199 -0
- data/lib/pokeapi_client/models/move_battle_style_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_change.rb +274 -0
- data/lib/pokeapi_client/models/move_change_effect_entries_inner.rb +216 -0
- data/lib/pokeapi_client/models/move_damage_class_description.rb +192 -0
- data/lib/pokeapi_client/models/move_damage_class_detail.rb +283 -0
- data/lib/pokeapi_client/models/move_damage_class_name.rb +199 -0
- data/lib/pokeapi_client/models/move_damage_class_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_detail.rb +723 -0
- data/lib/pokeapi_client/models/move_detail_contest_combos.rb +190 -0
- data/lib/pokeapi_client/models/move_detail_contest_combos_normal.rb +194 -0
- data/lib/pokeapi_client/models/move_detail_effect_changes_inner.rb +192 -0
- data/lib/pokeapi_client/models/move_detail_effect_changes_inner_effect_entries_inner.rb +190 -0
- data/lib/pokeapi_client/models/move_detail_machines_inner.rb +190 -0
- data/lib/pokeapi_client/models/move_detail_machines_inner_machine.rb +164 -0
- data/lib/pokeapi_client/models/move_detail_stat_changes_inner.rb +190 -0
- data/lib/pokeapi_client/models/move_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/move_learn_method_description.rb +192 -0
- data/lib/pokeapi_client/models/move_learn_method_detail.rb +283 -0
- data/lib/pokeapi_client/models/move_learn_method_name.rb +199 -0
- data/lib/pokeapi_client/models/move_learn_method_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_meta.rb +290 -0
- data/lib/pokeapi_client/models/move_meta_ailment_detail.rb +255 -0
- data/lib/pokeapi_client/models/move_meta_ailment_name.rb +199 -0
- data/lib/pokeapi_client/models/move_meta_ailment_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_meta_category_description.rb +192 -0
- data/lib/pokeapi_client/models/move_meta_category_detail.rb +255 -0
- data/lib/pokeapi_client/models/move_meta_category_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_name.rb +199 -0
- data/lib/pokeapi_client/models/move_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_target_description.rb +192 -0
- data/lib/pokeapi_client/models/move_target_detail.rb +283 -0
- data/lib/pokeapi_client/models/move_target_name.rb +199 -0
- data/lib/pokeapi_client/models/move_target_summary.rb +199 -0
- data/lib/pokeapi_client/models/nature_battle_style_preference.rb +216 -0
- data/lib/pokeapi_client/models/nature_detail.rb +415 -0
- data/lib/pokeapi_client/models/nature_detail_pokeathlon_stat_changes_inner.rb +190 -0
- data/lib/pokeapi_client/models/nature_name.rb +199 -0
- data/lib/pokeapi_client/models/nature_summary.rb +199 -0
- data/lib/pokeapi_client/models/paginated_ability_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_berry_firmness_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_berry_flavor_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_berry_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_characteristic_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_contest_effect_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_contest_type_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_egg_group_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_encounter_condition_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_encounter_condition_value_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_encounter_method_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_evolution_chain_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_evolution_trigger_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_gender_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_generation_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_growth_rate_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_attribute_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_category_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_fling_effect_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_pocket_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_language_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_location_area_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_location_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_machine_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_battle_style_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_damage_class_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_learn_method_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_meta_ailment_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_meta_category_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_target_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_nature_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pal_park_area_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokeathlon_stat_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokedex_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_color_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_form_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_habitat_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_shape_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_species_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_region_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_stat_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_super_contest_effect_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_type_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_version_group_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_version_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/pal_park_area_detail.rb +255 -0
- data/lib/pokeapi_client/models/pal_park_area_detail_pokemon_encounters_inner.rb +216 -0
- data/lib/pokeapi_client/models/pal_park_area_name.rb +199 -0
- data/lib/pokeapi_client/models/pal_park_area_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail.rb +253 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail_affecting_natures.rb +194 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail_affecting_natures_decrease_inner.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail_affecting_natures_increase_inner.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_name.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokedex_description.rb +192 -0
- data/lib/pokeapi_client/models/pokedex_detail.rb +346 -0
- data/lib/pokeapi_client/models/pokedex_detail_pokemon_entries_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokedex_name.rb +199 -0
- data/lib/pokeapi_client/models/pokedex_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_color_detail.rb +255 -0
- data/lib/pokeapi_client/models/pokemon_color_name.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_color_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_detail.rb +602 -0
- data/lib/pokeapi_client/models/pokemon_detail_abilities_inner.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_detail_cries.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_detail_held_items.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_moves_inner.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_moves_inner_version_group_details_inner.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_detail_past_abilities_inner.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_past_types_inner.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_sprites.rb +147 -0
- data/lib/pokeapi_client/models/pokemon_detail_types_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_dex_entry.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_form_detail.rb +443 -0
- data/lib/pokeapi_client/models/pokemon_form_detail_form_names_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_form_detail_sprites.rb +147 -0
- data/lib/pokeapi_client/models/pokemon_form_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_game_index.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_habitat_detail.rb +255 -0
- data/lib/pokeapi_client/models/pokemon_habitat_name.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_habitat_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_shape_detail.rb +283 -0
- data/lib/pokeapi_client/models/pokemon_shape_detail_awesome_names_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_shape_detail_names_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_shape_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_species_description.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_species_detail.rb +700 -0
- data/lib/pokeapi_client/models/pokemon_species_detail_genera_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_species_detail_pal_park_encounters_inner.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_species_detail_varieties_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_species_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_species_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_stat.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_summary.rb +199 -0
- data/lib/pokeapi_client/models/region_detail.rb +337 -0
- data/lib/pokeapi_client/models/region_name.rb +199 -0
- data/lib/pokeapi_client/models/region_summary.rb +199 -0
- data/lib/pokeapi_client/models/stat_detail.rb +368 -0
- data/lib/pokeapi_client/models/stat_detail_affecting_moves.rb +194 -0
- data/lib/pokeapi_client/models/stat_detail_affecting_moves_increase_inner.rb +190 -0
- data/lib/pokeapi_client/models/stat_detail_affecting_natures.rb +194 -0
- data/lib/pokeapi_client/models/stat_name.rb +199 -0
- data/lib/pokeapi_client/models/stat_summary.rb +199 -0
- data/lib/pokeapi_client/models/super_contest_effect_detail.rb +246 -0
- data/lib/pokeapi_client/models/super_contest_effect_flavor_text.rb +199 -0
- data/lib/pokeapi_client/models/super_contest_effect_summary.rb +164 -0
- data/lib/pokeapi_client/models/type_detail.rb +446 -0
- data/lib/pokeapi_client/models/type_detail_damage_relations.rb +306 -0
- data/lib/pokeapi_client/models/type_detail_past_damage_relations_inner.rb +190 -0
- data/lib/pokeapi_client/models/type_detail_past_damage_relations_inner_damage_relations.rb +306 -0
- data/lib/pokeapi_client/models/type_detail_pokemon_inner.rb +156 -0
- data/lib/pokeapi_client/models/type_detail_pokemon_inner_pokemon.rb +158 -0
- data/lib/pokeapi_client/models/type_detail_sprites_value_value.rb +147 -0
- data/lib/pokeapi_client/models/type_game_index.rb +190 -0
- data/lib/pokeapi_client/models/type_summary.rb +199 -0
- data/lib/pokeapi_client/models/version_detail.rb +254 -0
- data/lib/pokeapi_client/models/version_group_detail.rb +347 -0
- data/lib/pokeapi_client/models/version_group_summary.rb +199 -0
- data/lib/pokeapi_client/models/version_name.rb +199 -0
- data/lib/pokeapi_client/models/version_summary.rb +199 -0
- data/lib/pokeapi_client/version.rb +5 -5
- data/lib/pokeapi_client.rb +282 -50
- data/pokeapi_client.gemspec +6 -6
- data/spec/api/berries_api_spec.rb +113 -0
- data/spec/api/contests_api_spec.rb +113 -0
- data/spec/api/encounters_api_spec.rb +113 -0
- data/spec/api/evolution_api_spec.rb +87 -0
- data/spec/api/games_api_spec.rb +139 -0
- data/spec/api/items_api_spec.rb +165 -0
- data/spec/api/location_api_spec.rb +93 -11
- data/spec/api/machines_api_spec.rb +61 -0
- data/spec/api/moves_api_spec.rb +191 -0
- data/spec/api/pokemon_api_spec.rb +404 -11
- data/spec/api/utility_api_spec.rb +61 -0
- data/spec/models/ability_change_effect_text_spec.rb +42 -0
- data/spec/models/ability_change_spec.rb +42 -0
- data/spec/models/ability_detail_pokemon_inner_pokemon_spec.rb +42 -0
- data/spec/models/ability_detail_pokemon_inner_spec.rb +48 -0
- data/spec/models/ability_detail_spec.rb +84 -0
- data/spec/models/ability_effect_text_spec.rb +48 -0
- data/spec/models/ability_flavor_text_spec.rb +48 -0
- data/spec/models/ability_name_spec.rb +42 -0
- data/spec/models/ability_summary_spec.rb +42 -0
- data/spec/models/berry_detail_flavors_inner_flavor_spec.rb +42 -0
- data/spec/models/berry_detail_flavors_inner_spec.rb +42 -0
- data/spec/models/berry_detail_spec.rb +102 -0
- data/spec/models/berry_firmness_detail_spec.rb +54 -0
- data/spec/models/berry_firmness_name_spec.rb +42 -0
- data/spec/models/berry_firmness_summary_spec.rb +42 -0
- data/spec/models/berry_flavor_detail_berries_inner_berry_spec.rb +42 -0
- data/spec/models/berry_flavor_detail_berries_inner_spec.rb +42 -0
- data/spec/models/berry_flavor_detail_spec.rb +60 -0
- data/spec/models/berry_flavor_name_spec.rb +42 -0
- data/spec/models/berry_flavor_summary_spec.rb +42 -0
- data/spec/models/berry_summary_spec.rb +42 -0
- data/spec/models/characteristic_description_spec.rb +42 -0
- data/spec/models/characteristic_detail_spec.rb +60 -0
- data/spec/models/characteristic_summary_spec.rb +36 -0
- data/spec/models/contest_effect_detail_spec.rb +60 -0
- data/spec/models/contest_effect_effect_text_spec.rb +42 -0
- data/spec/models/contest_effect_flavor_text_spec.rb +42 -0
- data/spec/models/contest_effect_summary_spec.rb +36 -0
- data/spec/models/contest_type_detail_spec.rb +54 -0
- data/spec/models/contest_type_name_spec.rb +48 -0
- data/spec/models/contest_type_summary_spec.rb +42 -0
- data/spec/models/egg_group_detail_pokemon_species_inner_spec.rb +42 -0
- data/spec/models/egg_group_detail_spec.rb +54 -0
- data/spec/models/egg_group_name_spec.rb +42 -0
- data/spec/models/egg_group_summary_spec.rb +42 -0
- data/spec/models/encounter_condition_detail_spec.rb +54 -0
- data/spec/models/encounter_condition_name_spec.rb +42 -0
- data/spec/models/encounter_condition_summary_spec.rb +42 -0
- data/spec/models/encounter_condition_value_detail_spec.rb +54 -0
- data/spec/models/encounter_condition_value_name_spec.rb +42 -0
- data/spec/models/encounter_condition_value_summary_spec.rb +42 -0
- data/spec/models/encounter_method_detail_spec.rb +54 -0
- data/spec/models/encounter_method_name_spec.rb +42 -0
- data/spec/models/encounter_method_summary_spec.rb +42 -0
- data/spec/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner_gender_spec.rb +42 -0
- data/spec/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner_spec.rb +138 -0
- data/spec/models/evolution_chain_detail_chain_evolves_to_inner_spec.rb +48 -0
- data/spec/models/evolution_chain_detail_chain_spec.rb +54 -0
- data/spec/models/evolution_chain_detail_spec.rb +48 -0
- data/spec/models/evolution_chain_summary_spec.rb +36 -0
- data/spec/models/evolution_trigger_detail_spec.rb +54 -0
- data/spec/models/evolution_trigger_name_spec.rb +42 -0
- data/spec/models/evolution_trigger_summary_spec.rb +42 -0
- data/spec/models/experience_spec.rb +42 -0
- data/spec/models/gender_detail_pokemon_species_details_inner_spec.rb +42 -0
- data/spec/models/gender_detail_spec.rb +54 -0
- data/spec/models/gender_summary_spec.rb +42 -0
- data/spec/models/generation_detail_spec.rb +84 -0
- data/spec/models/generation_name_spec.rb +42 -0
- data/spec/models/generation_summary_spec.rb +42 -0
- data/spec/models/growth_rate_description_spec.rb +42 -0
- data/spec/models/growth_rate_detail_spec.rb +66 -0
- data/spec/models/growth_rate_summary_spec.rb +42 -0
- data/spec/models/item_attribute_description_spec.rb +42 -0
- data/spec/models/item_attribute_detail_spec.rb +60 -0
- data/spec/models/item_attribute_name_spec.rb +42 -0
- data/spec/models/item_attribute_summary_spec.rb +42 -0
- data/spec/models/item_category_detail_spec.rb +60 -0
- data/spec/models/item_category_name_spec.rb +42 -0
- data/spec/models/item_category_summary_spec.rb +42 -0
- data/spec/models/item_detail_baby_trigger_for_spec.rb +36 -0
- data/spec/models/item_detail_held_by_pokemon_inner_spec.rb +42 -0
- data/spec/models/item_detail_held_by_pokemon_inner_version_details_inner_spec.rb +42 -0
- data/spec/models/item_detail_machines_inner_spec.rb +42 -0
- data/spec/models/item_detail_spec.rb +120 -0
- data/spec/models/item_detail_sprites_spec.rb +36 -0
- data/spec/models/item_effect_text_spec.rb +48 -0
- data/spec/models/item_flavor_text_spec.rb +48 -0
- data/spec/models/item_fling_effect_detail_spec.rb +54 -0
- data/spec/models/item_fling_effect_effect_text_spec.rb +42 -0
- data/spec/models/item_fling_effect_summary_spec.rb +42 -0
- data/spec/models/item_game_index_spec.rb +42 -0
- data/spec/models/item_name_spec.rb +42 -0
- data/spec/models/item_pocket_detail_spec.rb +54 -0
- data/spec/models/item_pocket_name_spec.rb +42 -0
- data/spec/models/item_pocket_summary_spec.rb +42 -0
- data/spec/models/item_summary_spec.rb +42 -0
- data/spec/models/language_detail_spec.rb +66 -0
- data/spec/models/language_name_spec.rb +42 -0
- data/spec/models/language_summary_spec.rb +42 -0
- data/spec/models/location_area_detail_encounter_method_rates_inner_spec.rb +42 -0
- data/spec/models/location_area_detail_encounter_method_rates_inner_version_details_inner_spec.rb +42 -0
- data/spec/models/location_area_detail_pokemon_encounters_inner_spec.rb +42 -0
- data/spec/models/location_area_detail_pokemon_encounters_inner_version_details_inner_encounter_details_spec.rb +60 -0
- data/spec/models/location_area_detail_pokemon_encounters_inner_version_details_inner_spec.rb +48 -0
- data/spec/models/location_area_detail_spec.rb +72 -0
- data/spec/models/location_area_name_spec.rb +42 -0
- data/spec/models/location_area_summary_spec.rb +42 -0
- data/spec/models/location_detail_spec.rb +66 -0
- data/spec/models/location_game_index_spec.rb +42 -0
- data/spec/models/location_name_spec.rb +42 -0
- data/spec/models/location_summary_spec.rb +42 -0
- data/spec/models/machine_detail_spec.rb +54 -0
- data/spec/models/machine_summary_spec.rb +36 -0
- data/spec/models/move_battle_style_detail_spec.rb +48 -0
- data/spec/models/move_battle_style_name_spec.rb +42 -0
- data/spec/models/move_battle_style_summary_spec.rb +42 -0
- data/spec/models/move_change_effect_entries_inner_spec.rb +48 -0
- data/spec/models/move_change_spec.rb +72 -0
- data/spec/models/move_damage_class_description_spec.rb +42 -0
- data/spec/models/move_damage_class_detail_spec.rb +60 -0
- data/spec/models/move_damage_class_name_spec.rb +42 -0
- data/spec/models/move_damage_class_summary_spec.rb +42 -0
- data/spec/models/move_detail_contest_combos_normal_spec.rb +42 -0
- data/spec/models/move_detail_contest_combos_spec.rb +42 -0
- data/spec/models/move_detail_effect_changes_inner_effect_entries_inner_spec.rb +42 -0
- data/spec/models/move_detail_effect_changes_inner_spec.rb +42 -0
- data/spec/models/move_detail_machines_inner_machine_spec.rb +36 -0
- data/spec/models/move_detail_machines_inner_spec.rb +42 -0
- data/spec/models/move_detail_spec.rb +174 -0
- data/spec/models/move_detail_stat_changes_inner_spec.rb +42 -0
- data/spec/models/move_flavor_text_spec.rb +48 -0
- data/spec/models/move_learn_method_description_spec.rb +42 -0
- data/spec/models/move_learn_method_detail_spec.rb +60 -0
- data/spec/models/move_learn_method_name_spec.rb +42 -0
- data/spec/models/move_learn_method_summary_spec.rb +42 -0
- data/spec/models/move_meta_ailment_detail_spec.rb +54 -0
- data/spec/models/move_meta_ailment_name_spec.rb +42 -0
- data/spec/models/move_meta_ailment_summary_spec.rb +42 -0
- data/spec/models/move_meta_category_description_spec.rb +42 -0
- data/spec/models/move_meta_category_detail_spec.rb +54 -0
- data/spec/models/move_meta_category_summary_spec.rb +42 -0
- data/spec/models/move_meta_spec.rb +102 -0
- data/spec/models/move_name_spec.rb +42 -0
- data/spec/models/move_summary_spec.rb +42 -0
- data/spec/models/move_target_description_spec.rb +42 -0
- data/spec/models/move_target_detail_spec.rb +60 -0
- data/spec/models/move_target_name_spec.rb +42 -0
- data/spec/models/move_target_summary_spec.rb +42 -0
- data/spec/models/nature_battle_style_preference_spec.rb +48 -0
- data/spec/models/nature_detail_pokeathlon_stat_changes_inner_spec.rb +42 -0
- data/spec/models/nature_detail_spec.rb +90 -0
- data/spec/models/nature_name_spec.rb +42 -0
- data/spec/models/nature_summary_spec.rb +42 -0
- data/spec/models/paginated_ability_summary_list_spec.rb +54 -0
- data/spec/models/paginated_berry_firmness_summary_list_spec.rb +54 -0
- data/spec/models/paginated_berry_flavor_summary_list_spec.rb +54 -0
- data/spec/models/paginated_berry_summary_list_spec.rb +54 -0
- data/spec/models/paginated_characteristic_summary_list_spec.rb +54 -0
- data/spec/models/paginated_contest_effect_summary_list_spec.rb +54 -0
- data/spec/models/paginated_contest_type_summary_list_spec.rb +54 -0
- data/spec/models/paginated_egg_group_summary_list_spec.rb +54 -0
- data/spec/models/paginated_encounter_condition_summary_list_spec.rb +54 -0
- data/spec/models/paginated_encounter_condition_value_summary_list_spec.rb +54 -0
- data/spec/models/paginated_encounter_method_summary_list_spec.rb +54 -0
- data/spec/models/paginated_evolution_chain_summary_list_spec.rb +54 -0
- data/spec/models/paginated_evolution_trigger_summary_list_spec.rb +54 -0
- data/spec/models/paginated_gender_summary_list_spec.rb +54 -0
- data/spec/models/paginated_generation_summary_list_spec.rb +54 -0
- data/spec/models/paginated_growth_rate_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_attribute_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_category_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_fling_effect_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_pocket_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_summary_list_spec.rb +54 -0
- data/spec/models/paginated_language_summary_list_spec.rb +54 -0
- data/spec/models/paginated_location_area_summary_list_spec.rb +54 -0
- data/spec/models/paginated_location_summary_list_spec.rb +54 -0
- data/spec/models/paginated_machine_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_battle_style_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_damage_class_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_learn_method_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_meta_ailment_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_meta_category_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_target_summary_list_spec.rb +54 -0
- data/spec/models/paginated_nature_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pal_park_area_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokeathlon_stat_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokedex_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_color_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_form_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_habitat_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_shape_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_species_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_summary_list_spec.rb +54 -0
- data/spec/models/paginated_region_summary_list_spec.rb +54 -0
- data/spec/models/paginated_stat_summary_list_spec.rb +54 -0
- data/spec/models/paginated_super_contest_effect_summary_list_spec.rb +54 -0
- data/spec/models/paginated_type_summary_list_spec.rb +54 -0
- data/spec/models/paginated_version_group_summary_list_spec.rb +54 -0
- data/spec/models/paginated_version_summary_list_spec.rb +54 -0
- data/spec/models/pal_park_area_detail_pokemon_encounters_inner_spec.rb +48 -0
- data/spec/models/pal_park_area_detail_spec.rb +54 -0
- data/spec/models/pal_park_area_name_spec.rb +42 -0
- data/spec/models/pal_park_area_summary_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_affecting_natures_decrease_inner_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_affecting_natures_increase_inner_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_affecting_natures_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_spec.rb +54 -0
- data/spec/models/pokeathlon_stat_name_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_summary_spec.rb +42 -0
- data/spec/models/pokedex_description_spec.rb +42 -0
- data/spec/models/pokedex_detail_pokemon_entries_inner_spec.rb +42 -0
- data/spec/models/pokedex_detail_spec.rb +78 -0
- data/spec/models/pokedex_name_spec.rb +42 -0
- data/spec/models/pokedex_summary_spec.rb +42 -0
- data/spec/models/pokemon_color_detail_spec.rb +54 -0
- data/spec/models/pokemon_color_name_spec.rb +42 -0
- data/spec/models/pokemon_color_summary_spec.rb +42 -0
- data/spec/models/pokemon_detail_abilities_inner_spec.rb +48 -0
- data/spec/models/pokemon_detail_cries_spec.rb +42 -0
- data/spec/models/pokemon_detail_held_items_spec.rb +42 -0
- data/spec/models/pokemon_detail_moves_inner_spec.rb +42 -0
- data/spec/models/pokemon_detail_moves_inner_version_group_details_inner_spec.rb +48 -0
- data/spec/models/pokemon_detail_past_abilities_inner_spec.rb +42 -0
- data/spec/models/pokemon_detail_past_types_inner_spec.rb +42 -0
- data/spec/models/pokemon_detail_spec.rb +150 -0
- data/spec/models/pokemon_detail_sprites_spec.rb +36 -0
- data/spec/models/pokemon_detail_types_inner_spec.rb +42 -0
- data/spec/models/pokemon_dex_entry_spec.rb +42 -0
- data/spec/models/pokemon_form_detail_form_names_inner_spec.rb +42 -0
- data/spec/models/pokemon_form_detail_spec.rb +114 -0
- data/spec/models/pokemon_form_detail_sprites_spec.rb +36 -0
- data/spec/models/pokemon_form_summary_spec.rb +42 -0
- data/spec/models/pokemon_game_index_spec.rb +42 -0
- data/spec/models/pokemon_habitat_detail_spec.rb +54 -0
- data/spec/models/pokemon_habitat_name_spec.rb +42 -0
- data/spec/models/pokemon_habitat_summary_spec.rb +42 -0
- data/spec/models/pokemon_shape_detail_awesome_names_inner_spec.rb +42 -0
- data/spec/models/pokemon_shape_detail_names_inner_spec.rb +42 -0
- data/spec/models/pokemon_shape_detail_spec.rb +60 -0
- data/spec/models/pokemon_shape_summary_spec.rb +42 -0
- data/spec/models/pokemon_species_description_spec.rb +42 -0
- data/spec/models/pokemon_species_detail_genera_inner_spec.rb +42 -0
- data/spec/models/pokemon_species_detail_pal_park_encounters_inner_spec.rb +48 -0
- data/spec/models/pokemon_species_detail_spec.rb +192 -0
- data/spec/models/pokemon_species_detail_varieties_inner_spec.rb +42 -0
- data/spec/models/pokemon_species_flavor_text_spec.rb +48 -0
- data/spec/models/pokemon_species_summary_spec.rb +42 -0
- data/spec/models/pokemon_stat_spec.rb +48 -0
- data/spec/models/pokemon_summary_spec.rb +42 -0
- data/spec/models/region_detail_spec.rb +72 -0
- data/spec/models/region_name_spec.rb +42 -0
- data/spec/models/region_summary_spec.rb +42 -0
- data/spec/models/stat_detail_affecting_moves_increase_inner_spec.rb +42 -0
- data/spec/models/stat_detail_affecting_moves_spec.rb +42 -0
- data/spec/models/stat_detail_affecting_natures_spec.rb +42 -0
- data/spec/models/stat_detail_spec.rb +84 -0
- data/spec/models/stat_name_spec.rb +42 -0
- data/spec/models/stat_summary_spec.rb +42 -0
- data/spec/models/super_contest_effect_detail_spec.rb +54 -0
- data/spec/models/super_contest_effect_flavor_text_spec.rb +42 -0
- data/spec/models/super_contest_effect_summary_spec.rb +36 -0
- data/spec/models/type_detail_damage_relations_spec.rb +66 -0
- data/spec/models/type_detail_past_damage_relations_inner_damage_relations_spec.rb +66 -0
- data/spec/models/type_detail_past_damage_relations_inner_spec.rb +42 -0
- data/spec/models/type_detail_pokemon_inner_pokemon_spec.rb +42 -0
- data/spec/models/type_detail_pokemon_inner_spec.rb +42 -0
- data/spec/models/type_detail_spec.rb +96 -0
- data/spec/models/type_detail_sprites_value_value_spec.rb +36 -0
- data/spec/models/type_game_index_spec.rb +42 -0
- data/spec/models/type_summary_spec.rb +42 -0
- data/spec/models/version_detail_spec.rb +54 -0
- data/spec/models/version_group_detail_spec.rb +78 -0
- data/spec/models/version_group_summary_spec.rb +42 -0
- data/spec/models/version_name_spec.rb +42 -0
- data/spec/models/version_summary_spec.rb +42 -0
- data/spec/spec_helper.rb +4 -4
- metadata +1125 -193
- data/bin/bundle +0 -109
- data/docs/AbilityApi.md +0 -137
- data/docs/BerryApi.md +0 -137
- data/docs/BerryFirmnessApi.md +0 -137
- data/docs/BerryFlavorApi.md +0 -137
- data/docs/CharacteristicApi.md +0 -137
- data/docs/ContestEffectApi.md +0 -137
- data/docs/ContestTypeApi.md +0 -137
- data/docs/EggGroupApi.md +0 -137
- data/docs/EncounterConditionApi.md +0 -137
- data/docs/EncounterConditionValueApi.md +0 -137
- data/docs/EncounterMethodApi.md +0 -137
- data/docs/EvolutionChainApi.md +0 -137
- data/docs/EvolutionTriggerApi.md +0 -137
- data/docs/GenderApi.md +0 -137
- data/docs/GenerationApi.md +0 -137
- data/docs/GrowthRateApi.md +0 -137
- data/docs/ItemApi.md +0 -137
- data/docs/ItemAttributeApi.md +0 -137
- data/docs/ItemCategoryApi.md +0 -137
- data/docs/ItemFlingEffectApi.md +0 -137
- data/docs/ItemPocketApi.md +0 -137
- data/docs/LanguageApi.md +0 -137
- data/docs/LocationAreaApi.md +0 -137
- data/docs/MachineApi.md +0 -137
- data/docs/MoveAilmentApi.md +0 -137
- data/docs/MoveApi.md +0 -137
- data/docs/MoveBattleStyleApi.md +0 -137
- data/docs/MoveCategoryApi.md +0 -137
- data/docs/MoveDamageClassApi.md +0 -137
- data/docs/MoveLearnMethodApi.md +0 -137
- data/docs/MoveTargetApi.md +0 -137
- data/docs/NatureApi.md +0 -137
- data/docs/PalParkAreaApi.md +0 -137
- data/docs/PokeathlonStatApi.md +0 -137
- data/docs/PokedexApi.md +0 -137
- data/docs/PokemonColorApi.md +0 -137
- data/docs/PokemonFormApi.md +0 -137
- data/docs/PokemonHabitatApi.md +0 -137
- data/docs/PokemonShapeApi.md +0 -137
- data/docs/PokemonSpeciesApi.md +0 -137
- data/docs/RegionApi.md +0 -137
- data/docs/StatApi.md +0 -137
- data/docs/SuperContestEffectApi.md +0 -137
- data/docs/TypeApi.md +0 -137
- data/docs/VersionApi.md +0 -137
- data/docs/VersionGroupApi.md +0 -137
- data/lib/pokeapi_client/api/ability_api.rb +0 -140
- data/lib/pokeapi_client/api/berry_api.rb +0 -140
- data/lib/pokeapi_client/api/berry_firmness_api.rb +0 -140
- data/lib/pokeapi_client/api/berry_flavor_api.rb +0 -140
- data/lib/pokeapi_client/api/characteristic_api.rb +0 -140
- data/lib/pokeapi_client/api/contest_effect_api.rb +0 -140
- data/lib/pokeapi_client/api/contest_type_api.rb +0 -140
- data/lib/pokeapi_client/api/egg_group_api.rb +0 -140
- data/lib/pokeapi_client/api/encounter_condition_api.rb +0 -140
- data/lib/pokeapi_client/api/encounter_condition_value_api.rb +0 -140
- data/lib/pokeapi_client/api/encounter_method_api.rb +0 -140
- data/lib/pokeapi_client/api/evolution_chain_api.rb +0 -140
- data/lib/pokeapi_client/api/evolution_trigger_api.rb +0 -140
- data/lib/pokeapi_client/api/gender_api.rb +0 -140
- data/lib/pokeapi_client/api/generation_api.rb +0 -140
- data/lib/pokeapi_client/api/growth_rate_api.rb +0 -140
- data/lib/pokeapi_client/api/item_api.rb +0 -140
- data/lib/pokeapi_client/api/item_attribute_api.rb +0 -140
- data/lib/pokeapi_client/api/item_category_api.rb +0 -140
- data/lib/pokeapi_client/api/item_fling_effect_api.rb +0 -140
- data/lib/pokeapi_client/api/item_pocket_api.rb +0 -140
- data/lib/pokeapi_client/api/language_api.rb +0 -140
- data/lib/pokeapi_client/api/location_area_api.rb +0 -140
- data/lib/pokeapi_client/api/machine_api.rb +0 -140
- data/lib/pokeapi_client/api/move_ailment_api.rb +0 -140
- data/lib/pokeapi_client/api/move_api.rb +0 -140
- data/lib/pokeapi_client/api/move_battle_style_api.rb +0 -140
- data/lib/pokeapi_client/api/move_category_api.rb +0 -140
- data/lib/pokeapi_client/api/move_damage_class_api.rb +0 -140
- data/lib/pokeapi_client/api/move_learn_method_api.rb +0 -140
- data/lib/pokeapi_client/api/move_target_api.rb +0 -140
- data/lib/pokeapi_client/api/nature_api.rb +0 -140
- data/lib/pokeapi_client/api/pal_park_area_api.rb +0 -140
- data/lib/pokeapi_client/api/pokeathlon_stat_api.rb +0 -140
- data/lib/pokeapi_client/api/pokedex_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_color_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_form_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_habitat_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_shape_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_species_api.rb +0 -140
- data/lib/pokeapi_client/api/region_api.rb +0 -140
- data/lib/pokeapi_client/api/stat_api.rb +0 -140
- data/lib/pokeapi_client/api/super_contest_effect_api.rb +0 -140
- data/lib/pokeapi_client/api/type_api.rb +0 -140
- data/lib/pokeapi_client/api/version_api.rb +0 -140
- data/lib/pokeapi_client/api/version_group_api.rb +0 -140
- data/spec/api/ability_api_spec.rb +0 -56
- data/spec/api/berry_api_spec.rb +0 -56
- data/spec/api/berry_firmness_api_spec.rb +0 -56
- data/spec/api/berry_flavor_api_spec.rb +0 -56
- data/spec/api/characteristic_api_spec.rb +0 -56
- data/spec/api/contest_effect_api_spec.rb +0 -56
- data/spec/api/contest_type_api_spec.rb +0 -56
- data/spec/api/egg_group_api_spec.rb +0 -56
- data/spec/api/encounter_condition_api_spec.rb +0 -56
- data/spec/api/encounter_condition_value_api_spec.rb +0 -56
- data/spec/api/encounter_method_api_spec.rb +0 -56
- data/spec/api/evolution_chain_api_spec.rb +0 -56
- data/spec/api/evolution_trigger_api_spec.rb +0 -56
- data/spec/api/gender_api_spec.rb +0 -56
- data/spec/api/generation_api_spec.rb +0 -56
- data/spec/api/growth_rate_api_spec.rb +0 -56
- data/spec/api/item_api_spec.rb +0 -56
- data/spec/api/item_attribute_api_spec.rb +0 -56
- data/spec/api/item_category_api_spec.rb +0 -56
- data/spec/api/item_fling_effect_api_spec.rb +0 -56
- data/spec/api/item_pocket_api_spec.rb +0 -56
- data/spec/api/language_api_spec.rb +0 -56
- data/spec/api/location_area_api_spec.rb +0 -56
- data/spec/api/machine_api_spec.rb +0 -56
- data/spec/api/move_ailment_api_spec.rb +0 -56
- data/spec/api/move_api_spec.rb +0 -56
- data/spec/api/move_battle_style_api_spec.rb +0 -56
- data/spec/api/move_category_api_spec.rb +0 -56
- data/spec/api/move_damage_class_api_spec.rb +0 -56
- data/spec/api/move_learn_method_api_spec.rb +0 -56
- data/spec/api/move_target_api_spec.rb +0 -56
- data/spec/api/nature_api_spec.rb +0 -56
- data/spec/api/pal_park_area_api_spec.rb +0 -56
- data/spec/api/pokeathlon_stat_api_spec.rb +0 -56
- data/spec/api/pokedex_api_spec.rb +0 -56
- data/spec/api/pokemon_color_api_spec.rb +0 -56
- data/spec/api/pokemon_form_api_spec.rb +0 -56
- data/spec/api/pokemon_habitat_api_spec.rb +0 -56
- data/spec/api/pokemon_shape_api_spec.rb +0 -56
- data/spec/api/pokemon_species_api_spec.rb +0 -56
- data/spec/api/region_api_spec.rb +0 -56
- data/spec/api/stat_api_spec.rb +0 -56
- data/spec/api/super_contest_effect_api_spec.rb +0 -56
- data/spec/api/type_api_spec.rb +0 -56
- data/spec/api/version_api_spec.rb +0 -56
- data/spec/api/version_group_api_spec.rb +0 -56
|
@@ -0,0 +1,796 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PokéAPI
|
|
3
|
+
|
|
4
|
+
#All the Pokémon data you'll ever need in one place, easily accessible through a modern free open-source RESTful API. ## What is this? This is a full RESTful API linked to an extensive database detailing everything about the Pokémon main game series. We've covered everything from Pokémon to Berry Flavors. ## Where do I start? We have awesome [documentation](https://pokeapi.co/docs/v2) on how to use this API. It takes minutes to get started. This API will always be publicly available and will never require any extensive setup process to consume. Created by [**Paul Hallett**(]https://github.com/phalt) and other [**PokéAPI contributors***](https://github.com/PokeAPI/pokeapi#contributing) around the world. Pokémon and Pokémon character names are trademarks of Nintendo.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.7.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PokeApiClient
|
|
16
|
+
class MovesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List move meta ailments
|
|
23
|
+
# Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
27
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
28
|
+
# @return [PaginatedMoveMetaAilmentSummaryList]
|
|
29
|
+
def move_ailment_list(opts = {})
|
|
30
|
+
data, _status_code, _headers = move_ailment_list_with_http_info(opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# List move meta ailments
|
|
35
|
+
# Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
38
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
39
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
40
|
+
# @return [Array<(PaginatedMoveMetaAilmentSummaryList, Integer, Hash)>] PaginatedMoveMetaAilmentSummaryList data, response status code and response headers
|
|
41
|
+
def move_ailment_list_with_http_info(opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_ailment_list ...'
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/v2/move-ailment/'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
51
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
52
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
53
|
+
|
|
54
|
+
# header parameters
|
|
55
|
+
header_params = opts[:header_params] || {}
|
|
56
|
+
# HTTP header 'Accept' (if needed)
|
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body]
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveMetaAilmentSummaryList'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"MovesApi.move_ailment_list",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: MovesApi#move_ailment_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Get move meta ailment
|
|
89
|
+
# Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail.
|
|
90
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @return [MoveMetaAilmentDetail]
|
|
93
|
+
def move_ailment_retrieve(id, opts = {})
|
|
94
|
+
data, _status_code, _headers = move_ailment_retrieve_with_http_info(id, opts)
|
|
95
|
+
data
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Get move meta ailment
|
|
99
|
+
# Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail.
|
|
100
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [Array<(MoveMetaAilmentDetail, Integer, Hash)>] MoveMetaAilmentDetail data, response status code and response headers
|
|
103
|
+
def move_ailment_retrieve_with_http_info(id, opts = {})
|
|
104
|
+
if @api_client.config.debugging
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_ailment_retrieve ...'
|
|
106
|
+
end
|
|
107
|
+
# verify the required parameter 'id' is set
|
|
108
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MovesApi.move_ailment_retrieve"
|
|
110
|
+
end
|
|
111
|
+
# resource path
|
|
112
|
+
local_var_path = '/api/v2/move-ailment/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
113
|
+
|
|
114
|
+
# query parameters
|
|
115
|
+
query_params = opts[:query_params] || {}
|
|
116
|
+
|
|
117
|
+
# header parameters
|
|
118
|
+
header_params = opts[:header_params] || {}
|
|
119
|
+
# HTTP header 'Accept' (if needed)
|
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
121
|
+
|
|
122
|
+
# form parameters
|
|
123
|
+
form_params = opts[:form_params] || {}
|
|
124
|
+
|
|
125
|
+
# http body (model)
|
|
126
|
+
post_body = opts[:debug_body]
|
|
127
|
+
|
|
128
|
+
# return_type
|
|
129
|
+
return_type = opts[:debug_return_type] || 'MoveMetaAilmentDetail'
|
|
130
|
+
|
|
131
|
+
# auth_names
|
|
132
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
133
|
+
|
|
134
|
+
new_options = opts.merge(
|
|
135
|
+
:operation => :"MovesApi.move_ailment_retrieve",
|
|
136
|
+
:header_params => header_params,
|
|
137
|
+
:query_params => query_params,
|
|
138
|
+
:form_params => form_params,
|
|
139
|
+
:body => post_body,
|
|
140
|
+
:auth_names => auth_names,
|
|
141
|
+
:return_type => return_type
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug "API called: MovesApi#move_ailment_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
147
|
+
end
|
|
148
|
+
return data, status_code, headers
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# List move battle styles
|
|
152
|
+
# Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail.
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
155
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
156
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
157
|
+
# @return [PaginatedMoveBattleStyleSummaryList]
|
|
158
|
+
def move_battle_style_list(opts = {})
|
|
159
|
+
data, _status_code, _headers = move_battle_style_list_with_http_info(opts)
|
|
160
|
+
data
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# List move battle styles
|
|
164
|
+
# Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail.
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
167
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
168
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
169
|
+
# @return [Array<(PaginatedMoveBattleStyleSummaryList, Integer, Hash)>] PaginatedMoveBattleStyleSummaryList data, response status code and response headers
|
|
170
|
+
def move_battle_style_list_with_http_info(opts = {})
|
|
171
|
+
if @api_client.config.debugging
|
|
172
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_battle_style_list ...'
|
|
173
|
+
end
|
|
174
|
+
# resource path
|
|
175
|
+
local_var_path = '/api/v2/move-battle-style/'
|
|
176
|
+
|
|
177
|
+
# query parameters
|
|
178
|
+
query_params = opts[:query_params] || {}
|
|
179
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
180
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
181
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
182
|
+
|
|
183
|
+
# header parameters
|
|
184
|
+
header_params = opts[:header_params] || {}
|
|
185
|
+
# HTTP header 'Accept' (if needed)
|
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
187
|
+
|
|
188
|
+
# form parameters
|
|
189
|
+
form_params = opts[:form_params] || {}
|
|
190
|
+
|
|
191
|
+
# http body (model)
|
|
192
|
+
post_body = opts[:debug_body]
|
|
193
|
+
|
|
194
|
+
# return_type
|
|
195
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveBattleStyleSummaryList'
|
|
196
|
+
|
|
197
|
+
# auth_names
|
|
198
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
199
|
+
|
|
200
|
+
new_options = opts.merge(
|
|
201
|
+
:operation => :"MovesApi.move_battle_style_list",
|
|
202
|
+
:header_params => header_params,
|
|
203
|
+
:query_params => query_params,
|
|
204
|
+
:form_params => form_params,
|
|
205
|
+
:body => post_body,
|
|
206
|
+
:auth_names => auth_names,
|
|
207
|
+
:return_type => return_type
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
211
|
+
if @api_client.config.debugging
|
|
212
|
+
@api_client.config.logger.debug "API called: MovesApi#move_battle_style_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
213
|
+
end
|
|
214
|
+
return data, status_code, headers
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Get move battle style
|
|
218
|
+
# Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail.
|
|
219
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [MoveBattleStyleDetail]
|
|
222
|
+
def move_battle_style_retrieve(id, opts = {})
|
|
223
|
+
data, _status_code, _headers = move_battle_style_retrieve_with_http_info(id, opts)
|
|
224
|
+
data
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Get move battle style
|
|
228
|
+
# Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail.
|
|
229
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
230
|
+
# @param [Hash] opts the optional parameters
|
|
231
|
+
# @return [Array<(MoveBattleStyleDetail, Integer, Hash)>] MoveBattleStyleDetail data, response status code and response headers
|
|
232
|
+
def move_battle_style_retrieve_with_http_info(id, opts = {})
|
|
233
|
+
if @api_client.config.debugging
|
|
234
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_battle_style_retrieve ...'
|
|
235
|
+
end
|
|
236
|
+
# verify the required parameter 'id' is set
|
|
237
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
238
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MovesApi.move_battle_style_retrieve"
|
|
239
|
+
end
|
|
240
|
+
# resource path
|
|
241
|
+
local_var_path = '/api/v2/move-battle-style/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
242
|
+
|
|
243
|
+
# query parameters
|
|
244
|
+
query_params = opts[:query_params] || {}
|
|
245
|
+
|
|
246
|
+
# header parameters
|
|
247
|
+
header_params = opts[:header_params] || {}
|
|
248
|
+
# HTTP header 'Accept' (if needed)
|
|
249
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
250
|
+
|
|
251
|
+
# form parameters
|
|
252
|
+
form_params = opts[:form_params] || {}
|
|
253
|
+
|
|
254
|
+
# http body (model)
|
|
255
|
+
post_body = opts[:debug_body]
|
|
256
|
+
|
|
257
|
+
# return_type
|
|
258
|
+
return_type = opts[:debug_return_type] || 'MoveBattleStyleDetail'
|
|
259
|
+
|
|
260
|
+
# auth_names
|
|
261
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
262
|
+
|
|
263
|
+
new_options = opts.merge(
|
|
264
|
+
:operation => :"MovesApi.move_battle_style_retrieve",
|
|
265
|
+
:header_params => header_params,
|
|
266
|
+
:query_params => query_params,
|
|
267
|
+
:form_params => form_params,
|
|
268
|
+
:body => post_body,
|
|
269
|
+
:auth_names => auth_names,
|
|
270
|
+
:return_type => return_type
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
274
|
+
if @api_client.config.debugging
|
|
275
|
+
@api_client.config.logger.debug "API called: MovesApi#move_battle_style_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
276
|
+
end
|
|
277
|
+
return data, status_code, headers
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# List move meta categories
|
|
281
|
+
# Very general categories that loosely group move effects.
|
|
282
|
+
# @param [Hash] opts the optional parameters
|
|
283
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
284
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
285
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
286
|
+
# @return [PaginatedMoveMetaCategorySummaryList]
|
|
287
|
+
def move_category_list(opts = {})
|
|
288
|
+
data, _status_code, _headers = move_category_list_with_http_info(opts)
|
|
289
|
+
data
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# List move meta categories
|
|
293
|
+
# Very general categories that loosely group move effects.
|
|
294
|
+
# @param [Hash] opts the optional parameters
|
|
295
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
296
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
297
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
298
|
+
# @return [Array<(PaginatedMoveMetaCategorySummaryList, Integer, Hash)>] PaginatedMoveMetaCategorySummaryList data, response status code and response headers
|
|
299
|
+
def move_category_list_with_http_info(opts = {})
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_category_list ...'
|
|
302
|
+
end
|
|
303
|
+
# resource path
|
|
304
|
+
local_var_path = '/api/v2/move-category/'
|
|
305
|
+
|
|
306
|
+
# query parameters
|
|
307
|
+
query_params = opts[:query_params] || {}
|
|
308
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
309
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
310
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
311
|
+
|
|
312
|
+
# header parameters
|
|
313
|
+
header_params = opts[:header_params] || {}
|
|
314
|
+
# HTTP header 'Accept' (if needed)
|
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
316
|
+
|
|
317
|
+
# form parameters
|
|
318
|
+
form_params = opts[:form_params] || {}
|
|
319
|
+
|
|
320
|
+
# http body (model)
|
|
321
|
+
post_body = opts[:debug_body]
|
|
322
|
+
|
|
323
|
+
# return_type
|
|
324
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveMetaCategorySummaryList'
|
|
325
|
+
|
|
326
|
+
# auth_names
|
|
327
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
328
|
+
|
|
329
|
+
new_options = opts.merge(
|
|
330
|
+
:operation => :"MovesApi.move_category_list",
|
|
331
|
+
:header_params => header_params,
|
|
332
|
+
:query_params => query_params,
|
|
333
|
+
:form_params => form_params,
|
|
334
|
+
:body => post_body,
|
|
335
|
+
:auth_names => auth_names,
|
|
336
|
+
:return_type => return_type
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug "API called: MovesApi#move_category_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
342
|
+
end
|
|
343
|
+
return data, status_code, headers
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Get move meta category
|
|
347
|
+
# Very general categories that loosely group move effects.
|
|
348
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
349
|
+
# @param [Hash] opts the optional parameters
|
|
350
|
+
# @return [MoveMetaCategoryDetail]
|
|
351
|
+
def move_category_retrieve(id, opts = {})
|
|
352
|
+
data, _status_code, _headers = move_category_retrieve_with_http_info(id, opts)
|
|
353
|
+
data
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Get move meta category
|
|
357
|
+
# Very general categories that loosely group move effects.
|
|
358
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
359
|
+
# @param [Hash] opts the optional parameters
|
|
360
|
+
# @return [Array<(MoveMetaCategoryDetail, Integer, Hash)>] MoveMetaCategoryDetail data, response status code and response headers
|
|
361
|
+
def move_category_retrieve_with_http_info(id, opts = {})
|
|
362
|
+
if @api_client.config.debugging
|
|
363
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_category_retrieve ...'
|
|
364
|
+
end
|
|
365
|
+
# verify the required parameter 'id' is set
|
|
366
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
367
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MovesApi.move_category_retrieve"
|
|
368
|
+
end
|
|
369
|
+
# resource path
|
|
370
|
+
local_var_path = '/api/v2/move-category/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
371
|
+
|
|
372
|
+
# query parameters
|
|
373
|
+
query_params = opts[:query_params] || {}
|
|
374
|
+
|
|
375
|
+
# header parameters
|
|
376
|
+
header_params = opts[:header_params] || {}
|
|
377
|
+
# HTTP header 'Accept' (if needed)
|
|
378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
379
|
+
|
|
380
|
+
# form parameters
|
|
381
|
+
form_params = opts[:form_params] || {}
|
|
382
|
+
|
|
383
|
+
# http body (model)
|
|
384
|
+
post_body = opts[:debug_body]
|
|
385
|
+
|
|
386
|
+
# return_type
|
|
387
|
+
return_type = opts[:debug_return_type] || 'MoveMetaCategoryDetail'
|
|
388
|
+
|
|
389
|
+
# auth_names
|
|
390
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
391
|
+
|
|
392
|
+
new_options = opts.merge(
|
|
393
|
+
:operation => :"MovesApi.move_category_retrieve",
|
|
394
|
+
:header_params => header_params,
|
|
395
|
+
:query_params => query_params,
|
|
396
|
+
:form_params => form_params,
|
|
397
|
+
:body => post_body,
|
|
398
|
+
:auth_names => auth_names,
|
|
399
|
+
:return_type => return_type
|
|
400
|
+
)
|
|
401
|
+
|
|
402
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
403
|
+
if @api_client.config.debugging
|
|
404
|
+
@api_client.config.logger.debug "API called: MovesApi#move_category_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
405
|
+
end
|
|
406
|
+
return data, status_code, headers
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# List move learn methods
|
|
410
|
+
# Methods by which Pokémon can learn moves.
|
|
411
|
+
# @param [Hash] opts the optional parameters
|
|
412
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
413
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
414
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
415
|
+
# @return [PaginatedMoveLearnMethodSummaryList]
|
|
416
|
+
def move_learn_method_list(opts = {})
|
|
417
|
+
data, _status_code, _headers = move_learn_method_list_with_http_info(opts)
|
|
418
|
+
data
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# List move learn methods
|
|
422
|
+
# Methods by which Pokémon can learn moves.
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
425
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
426
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
427
|
+
# @return [Array<(PaginatedMoveLearnMethodSummaryList, Integer, Hash)>] PaginatedMoveLearnMethodSummaryList data, response status code and response headers
|
|
428
|
+
def move_learn_method_list_with_http_info(opts = {})
|
|
429
|
+
if @api_client.config.debugging
|
|
430
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_learn_method_list ...'
|
|
431
|
+
end
|
|
432
|
+
# resource path
|
|
433
|
+
local_var_path = '/api/v2/move-learn-method/'
|
|
434
|
+
|
|
435
|
+
# query parameters
|
|
436
|
+
query_params = opts[:query_params] || {}
|
|
437
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
438
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
439
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
440
|
+
|
|
441
|
+
# header parameters
|
|
442
|
+
header_params = opts[:header_params] || {}
|
|
443
|
+
# HTTP header 'Accept' (if needed)
|
|
444
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
445
|
+
|
|
446
|
+
# form parameters
|
|
447
|
+
form_params = opts[:form_params] || {}
|
|
448
|
+
|
|
449
|
+
# http body (model)
|
|
450
|
+
post_body = opts[:debug_body]
|
|
451
|
+
|
|
452
|
+
# return_type
|
|
453
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveLearnMethodSummaryList'
|
|
454
|
+
|
|
455
|
+
# auth_names
|
|
456
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
457
|
+
|
|
458
|
+
new_options = opts.merge(
|
|
459
|
+
:operation => :"MovesApi.move_learn_method_list",
|
|
460
|
+
:header_params => header_params,
|
|
461
|
+
:query_params => query_params,
|
|
462
|
+
:form_params => form_params,
|
|
463
|
+
:body => post_body,
|
|
464
|
+
:auth_names => auth_names,
|
|
465
|
+
:return_type => return_type
|
|
466
|
+
)
|
|
467
|
+
|
|
468
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
469
|
+
if @api_client.config.debugging
|
|
470
|
+
@api_client.config.logger.debug "API called: MovesApi#move_learn_method_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
471
|
+
end
|
|
472
|
+
return data, status_code, headers
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# Get move learn method
|
|
476
|
+
# Methods by which Pokémon can learn moves.
|
|
477
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
478
|
+
# @param [Hash] opts the optional parameters
|
|
479
|
+
# @return [MoveLearnMethodDetail]
|
|
480
|
+
def move_learn_method_retrieve(id, opts = {})
|
|
481
|
+
data, _status_code, _headers = move_learn_method_retrieve_with_http_info(id, opts)
|
|
482
|
+
data
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# Get move learn method
|
|
486
|
+
# Methods by which Pokémon can learn moves.
|
|
487
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
488
|
+
# @param [Hash] opts the optional parameters
|
|
489
|
+
# @return [Array<(MoveLearnMethodDetail, Integer, Hash)>] MoveLearnMethodDetail data, response status code and response headers
|
|
490
|
+
def move_learn_method_retrieve_with_http_info(id, opts = {})
|
|
491
|
+
if @api_client.config.debugging
|
|
492
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_learn_method_retrieve ...'
|
|
493
|
+
end
|
|
494
|
+
# verify the required parameter 'id' is set
|
|
495
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
496
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MovesApi.move_learn_method_retrieve"
|
|
497
|
+
end
|
|
498
|
+
# resource path
|
|
499
|
+
local_var_path = '/api/v2/move-learn-method/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
500
|
+
|
|
501
|
+
# query parameters
|
|
502
|
+
query_params = opts[:query_params] || {}
|
|
503
|
+
|
|
504
|
+
# header parameters
|
|
505
|
+
header_params = opts[:header_params] || {}
|
|
506
|
+
# HTTP header 'Accept' (if needed)
|
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
508
|
+
|
|
509
|
+
# form parameters
|
|
510
|
+
form_params = opts[:form_params] || {}
|
|
511
|
+
|
|
512
|
+
# http body (model)
|
|
513
|
+
post_body = opts[:debug_body]
|
|
514
|
+
|
|
515
|
+
# return_type
|
|
516
|
+
return_type = opts[:debug_return_type] || 'MoveLearnMethodDetail'
|
|
517
|
+
|
|
518
|
+
# auth_names
|
|
519
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
520
|
+
|
|
521
|
+
new_options = opts.merge(
|
|
522
|
+
:operation => :"MovesApi.move_learn_method_retrieve",
|
|
523
|
+
:header_params => header_params,
|
|
524
|
+
:query_params => query_params,
|
|
525
|
+
:form_params => form_params,
|
|
526
|
+
:body => post_body,
|
|
527
|
+
:auth_names => auth_names,
|
|
528
|
+
:return_type => return_type
|
|
529
|
+
)
|
|
530
|
+
|
|
531
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
532
|
+
if @api_client.config.debugging
|
|
533
|
+
@api_client.config.logger.debug "API called: MovesApi#move_learn_method_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
534
|
+
end
|
|
535
|
+
return data, status_code, headers
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
# List moves
|
|
539
|
+
# Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.
|
|
540
|
+
# @param [Hash] opts the optional parameters
|
|
541
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
542
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
543
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
544
|
+
# @return [PaginatedMoveSummaryList]
|
|
545
|
+
def move_list(opts = {})
|
|
546
|
+
data, _status_code, _headers = move_list_with_http_info(opts)
|
|
547
|
+
data
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# List moves
|
|
551
|
+
# Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.
|
|
552
|
+
# @param [Hash] opts the optional parameters
|
|
553
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
554
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
555
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
556
|
+
# @return [Array<(PaginatedMoveSummaryList, Integer, Hash)>] PaginatedMoveSummaryList data, response status code and response headers
|
|
557
|
+
def move_list_with_http_info(opts = {})
|
|
558
|
+
if @api_client.config.debugging
|
|
559
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_list ...'
|
|
560
|
+
end
|
|
561
|
+
# resource path
|
|
562
|
+
local_var_path = '/api/v2/move/'
|
|
563
|
+
|
|
564
|
+
# query parameters
|
|
565
|
+
query_params = opts[:query_params] || {}
|
|
566
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
567
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
568
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
569
|
+
|
|
570
|
+
# header parameters
|
|
571
|
+
header_params = opts[:header_params] || {}
|
|
572
|
+
# HTTP header 'Accept' (if needed)
|
|
573
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
574
|
+
|
|
575
|
+
# form parameters
|
|
576
|
+
form_params = opts[:form_params] || {}
|
|
577
|
+
|
|
578
|
+
# http body (model)
|
|
579
|
+
post_body = opts[:debug_body]
|
|
580
|
+
|
|
581
|
+
# return_type
|
|
582
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveSummaryList'
|
|
583
|
+
|
|
584
|
+
# auth_names
|
|
585
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
586
|
+
|
|
587
|
+
new_options = opts.merge(
|
|
588
|
+
:operation => :"MovesApi.move_list",
|
|
589
|
+
:header_params => header_params,
|
|
590
|
+
:query_params => query_params,
|
|
591
|
+
:form_params => form_params,
|
|
592
|
+
:body => post_body,
|
|
593
|
+
:auth_names => auth_names,
|
|
594
|
+
:return_type => return_type
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
598
|
+
if @api_client.config.debugging
|
|
599
|
+
@api_client.config.logger.debug "API called: MovesApi#move_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
600
|
+
end
|
|
601
|
+
return data, status_code, headers
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
# Get move
|
|
605
|
+
# Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.
|
|
606
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
607
|
+
# @param [Hash] opts the optional parameters
|
|
608
|
+
# @return [MoveDetail]
|
|
609
|
+
def move_retrieve(id, opts = {})
|
|
610
|
+
data, _status_code, _headers = move_retrieve_with_http_info(id, opts)
|
|
611
|
+
data
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# Get move
|
|
615
|
+
# Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.
|
|
616
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
617
|
+
# @param [Hash] opts the optional parameters
|
|
618
|
+
# @return [Array<(MoveDetail, Integer, Hash)>] MoveDetail data, response status code and response headers
|
|
619
|
+
def move_retrieve_with_http_info(id, opts = {})
|
|
620
|
+
if @api_client.config.debugging
|
|
621
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_retrieve ...'
|
|
622
|
+
end
|
|
623
|
+
# verify the required parameter 'id' is set
|
|
624
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
625
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MovesApi.move_retrieve"
|
|
626
|
+
end
|
|
627
|
+
# resource path
|
|
628
|
+
local_var_path = '/api/v2/move/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
629
|
+
|
|
630
|
+
# query parameters
|
|
631
|
+
query_params = opts[:query_params] || {}
|
|
632
|
+
|
|
633
|
+
# header parameters
|
|
634
|
+
header_params = opts[:header_params] || {}
|
|
635
|
+
# HTTP header 'Accept' (if needed)
|
|
636
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
637
|
+
|
|
638
|
+
# form parameters
|
|
639
|
+
form_params = opts[:form_params] || {}
|
|
640
|
+
|
|
641
|
+
# http body (model)
|
|
642
|
+
post_body = opts[:debug_body]
|
|
643
|
+
|
|
644
|
+
# return_type
|
|
645
|
+
return_type = opts[:debug_return_type] || 'MoveDetail'
|
|
646
|
+
|
|
647
|
+
# auth_names
|
|
648
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
649
|
+
|
|
650
|
+
new_options = opts.merge(
|
|
651
|
+
:operation => :"MovesApi.move_retrieve",
|
|
652
|
+
:header_params => header_params,
|
|
653
|
+
:query_params => query_params,
|
|
654
|
+
:form_params => form_params,
|
|
655
|
+
:body => post_body,
|
|
656
|
+
:auth_names => auth_names,
|
|
657
|
+
:return_type => return_type
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
661
|
+
if @api_client.config.debugging
|
|
662
|
+
@api_client.config.logger.debug "API called: MovesApi#move_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
663
|
+
end
|
|
664
|
+
return data, status_code, headers
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# List move targets
|
|
668
|
+
# Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
|
|
669
|
+
# @param [Hash] opts the optional parameters
|
|
670
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
671
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
672
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
673
|
+
# @return [PaginatedMoveTargetSummaryList]
|
|
674
|
+
def move_target_list(opts = {})
|
|
675
|
+
data, _status_code, _headers = move_target_list_with_http_info(opts)
|
|
676
|
+
data
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# List move targets
|
|
680
|
+
# Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
|
|
681
|
+
# @param [Hash] opts the optional parameters
|
|
682
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
683
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
684
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
685
|
+
# @return [Array<(PaginatedMoveTargetSummaryList, Integer, Hash)>] PaginatedMoveTargetSummaryList data, response status code and response headers
|
|
686
|
+
def move_target_list_with_http_info(opts = {})
|
|
687
|
+
if @api_client.config.debugging
|
|
688
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_target_list ...'
|
|
689
|
+
end
|
|
690
|
+
# resource path
|
|
691
|
+
local_var_path = '/api/v2/move-target/'
|
|
692
|
+
|
|
693
|
+
# query parameters
|
|
694
|
+
query_params = opts[:query_params] || {}
|
|
695
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
696
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
697
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
698
|
+
|
|
699
|
+
# header parameters
|
|
700
|
+
header_params = opts[:header_params] || {}
|
|
701
|
+
# HTTP header 'Accept' (if needed)
|
|
702
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
703
|
+
|
|
704
|
+
# form parameters
|
|
705
|
+
form_params = opts[:form_params] || {}
|
|
706
|
+
|
|
707
|
+
# http body (model)
|
|
708
|
+
post_body = opts[:debug_body]
|
|
709
|
+
|
|
710
|
+
# return_type
|
|
711
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveTargetSummaryList'
|
|
712
|
+
|
|
713
|
+
# auth_names
|
|
714
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
715
|
+
|
|
716
|
+
new_options = opts.merge(
|
|
717
|
+
:operation => :"MovesApi.move_target_list",
|
|
718
|
+
:header_params => header_params,
|
|
719
|
+
:query_params => query_params,
|
|
720
|
+
:form_params => form_params,
|
|
721
|
+
:body => post_body,
|
|
722
|
+
:auth_names => auth_names,
|
|
723
|
+
:return_type => return_type
|
|
724
|
+
)
|
|
725
|
+
|
|
726
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
727
|
+
if @api_client.config.debugging
|
|
728
|
+
@api_client.config.logger.debug "API called: MovesApi#move_target_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
729
|
+
end
|
|
730
|
+
return data, status_code, headers
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Get move target
|
|
734
|
+
# Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
|
|
735
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
736
|
+
# @param [Hash] opts the optional parameters
|
|
737
|
+
# @return [MoveTargetDetail]
|
|
738
|
+
def move_target_retrieve(id, opts = {})
|
|
739
|
+
data, _status_code, _headers = move_target_retrieve_with_http_info(id, opts)
|
|
740
|
+
data
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
# Get move target
|
|
744
|
+
# Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
|
|
745
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
746
|
+
# @param [Hash] opts the optional parameters
|
|
747
|
+
# @return [Array<(MoveTargetDetail, Integer, Hash)>] MoveTargetDetail data, response status code and response headers
|
|
748
|
+
def move_target_retrieve_with_http_info(id, opts = {})
|
|
749
|
+
if @api_client.config.debugging
|
|
750
|
+
@api_client.config.logger.debug 'Calling API: MovesApi.move_target_retrieve ...'
|
|
751
|
+
end
|
|
752
|
+
# verify the required parameter 'id' is set
|
|
753
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
754
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MovesApi.move_target_retrieve"
|
|
755
|
+
end
|
|
756
|
+
# resource path
|
|
757
|
+
local_var_path = '/api/v2/move-target/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
758
|
+
|
|
759
|
+
# query parameters
|
|
760
|
+
query_params = opts[:query_params] || {}
|
|
761
|
+
|
|
762
|
+
# header parameters
|
|
763
|
+
header_params = opts[:header_params] || {}
|
|
764
|
+
# HTTP header 'Accept' (if needed)
|
|
765
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
766
|
+
|
|
767
|
+
# form parameters
|
|
768
|
+
form_params = opts[:form_params] || {}
|
|
769
|
+
|
|
770
|
+
# http body (model)
|
|
771
|
+
post_body = opts[:debug_body]
|
|
772
|
+
|
|
773
|
+
# return_type
|
|
774
|
+
return_type = opts[:debug_return_type] || 'MoveTargetDetail'
|
|
775
|
+
|
|
776
|
+
# auth_names
|
|
777
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
778
|
+
|
|
779
|
+
new_options = opts.merge(
|
|
780
|
+
:operation => :"MovesApi.move_target_retrieve",
|
|
781
|
+
:header_params => header_params,
|
|
782
|
+
:query_params => query_params,
|
|
783
|
+
:form_params => form_params,
|
|
784
|
+
:body => post_body,
|
|
785
|
+
:auth_names => auth_names,
|
|
786
|
+
:return_type => return_type
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
790
|
+
if @api_client.config.debugging
|
|
791
|
+
@api_client.config.logger.debug "API called: MovesApi#move_target_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
792
|
+
end
|
|
793
|
+
return data, status_code, headers
|
|
794
|
+
end
|
|
795
|
+
end
|
|
796
|
+
end
|