pokeapi_client 0.9.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 +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +70 -0
- data/README.md +185 -0
- data/Rakefile +10 -0
- data/bin/bundle +114 -0
- data/bin/byebug +27 -0
- data/bin/coderay +27 -0
- data/bin/htmldiff +27 -0
- data/bin/ldiff +27 -0
- data/bin/pry +27 -0
- data/bin/rake +27 -0
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/bin/ruby-parse +27 -0
- data/bin/ruby-rewrite +27 -0
- data/docs/AbilityApi.md +137 -0
- data/docs/BerryApi.md +137 -0
- data/docs/BerryFirmnessApi.md +137 -0
- data/docs/BerryFlavorApi.md +137 -0
- data/docs/CharacteristicApi.md +137 -0
- data/docs/ContestEffectApi.md +137 -0
- data/docs/ContestTypeApi.md +137 -0
- data/docs/EggGroupApi.md +137 -0
- data/docs/EncounterConditionApi.md +137 -0
- data/docs/EncounterConditionValueApi.md +137 -0
- data/docs/EncounterMethodApi.md +137 -0
- data/docs/EvolutionChainApi.md +137 -0
- data/docs/EvolutionTriggerApi.md +137 -0
- data/docs/GenderApi.md +137 -0
- data/docs/GenerationApi.md +137 -0
- data/docs/GrowthRateApi.md +137 -0
- data/docs/ItemApi.md +137 -0
- data/docs/ItemAttributeApi.md +137 -0
- data/docs/ItemCategoryApi.md +137 -0
- data/docs/ItemFlingEffectApi.md +137 -0
- data/docs/ItemPocketApi.md +137 -0
- data/docs/LanguageApi.md +137 -0
- data/docs/LocationApi.md +137 -0
- data/docs/LocationAreaApi.md +137 -0
- data/docs/MachineApi.md +137 -0
- data/docs/MoveAilmentApi.md +137 -0
- data/docs/MoveApi.md +137 -0
- data/docs/MoveBattleStyleApi.md +137 -0
- data/docs/MoveCategoryApi.md +137 -0
- data/docs/MoveDamageClassApi.md +137 -0
- data/docs/MoveLearnMethodApi.md +137 -0
- data/docs/MoveTargetApi.md +137 -0
- data/docs/NatureApi.md +137 -0
- data/docs/PalParkAreaApi.md +137 -0
- data/docs/PokeathlonStatApi.md +137 -0
- data/docs/PokedexApi.md +137 -0
- data/docs/PokemonApi.md +137 -0
- data/docs/PokemonColorApi.md +137 -0
- data/docs/PokemonFormApi.md +137 -0
- data/docs/PokemonHabitatApi.md +137 -0
- data/docs/PokemonShapeApi.md +137 -0
- data/docs/PokemonSpeciesApi.md +137 -0
- data/docs/RegionApi.md +137 -0
- data/docs/StatApi.md +137 -0
- data/docs/SuperContestEffectApi.md +137 -0
- data/docs/TypeApi.md +137 -0
- data/docs/VersionApi.md +137 -0
- data/docs/VersionGroupApi.md +137 -0
- data/git_push.sh +57 -0
- data/pokeapi_client.gemspec +36 -0
- data/spec/api/ability_api_spec.rb +54 -0
- data/spec/api/berry_api_spec.rb +54 -0
- data/spec/api/berry_firmness_api_spec.rb +54 -0
- data/spec/api/berry_flavor_api_spec.rb +54 -0
- data/spec/api/characteristic_api_spec.rb +54 -0
- data/spec/api/contest_effect_api_spec.rb +54 -0
- data/spec/api/contest_type_api_spec.rb +54 -0
- data/spec/api/egg_group_api_spec.rb +54 -0
- data/spec/api/encounter_condition_api_spec.rb +54 -0
- data/spec/api/encounter_condition_value_api_spec.rb +54 -0
- data/spec/api/encounter_method_api_spec.rb +54 -0
- data/spec/api/evolution_chain_api_spec.rb +54 -0
- data/spec/api/evolution_trigger_api_spec.rb +54 -0
- data/spec/api/gender_api_spec.rb +54 -0
- data/spec/api/generation_api_spec.rb +54 -0
- data/spec/api/growth_rate_api_spec.rb +54 -0
- data/spec/api/item_api_spec.rb +54 -0
- data/spec/api/item_attribute_api_spec.rb +54 -0
- data/spec/api/item_category_api_spec.rb +54 -0
- data/spec/api/item_fling_effect_api_spec.rb +54 -0
- data/spec/api/item_pocket_api_spec.rb +54 -0
- data/spec/api/language_api_spec.rb +54 -0
- data/spec/api/location_api_spec.rb +54 -0
- data/spec/api/location_area_api_spec.rb +54 -0
- data/spec/api/machine_api_spec.rb +54 -0
- data/spec/api/move_ailment_api_spec.rb +54 -0
- data/spec/api/move_api_spec.rb +54 -0
- data/spec/api/move_battle_style_api_spec.rb +54 -0
- data/spec/api/move_category_api_spec.rb +54 -0
- data/spec/api/move_damage_class_api_spec.rb +54 -0
- data/spec/api/move_learn_method_api_spec.rb +54 -0
- data/spec/api/move_target_api_spec.rb +54 -0
- data/spec/api/nature_api_spec.rb +54 -0
- data/spec/api/pal_park_area_api_spec.rb +54 -0
- data/spec/api/pokeathlon_stat_api_spec.rb +54 -0
- data/spec/api/pokedex_api_spec.rb +54 -0
- data/spec/api/pokemon_api_spec.rb +54 -0
- data/spec/api/pokemon_color_api_spec.rb +54 -0
- data/spec/api/pokemon_form_api_spec.rb +54 -0
- data/spec/api/pokemon_habitat_api_spec.rb +54 -0
- data/spec/api/pokemon_shape_api_spec.rb +54 -0
- data/spec/api/pokemon_species_api_spec.rb +54 -0
- data/spec/api/region_api_spec.rb +54 -0
- data/spec/api/stat_api_spec.rb +54 -0
- data/spec/api/super_contest_effect_api_spec.rb +54 -0
- data/spec/api/type_api_spec.rb +54 -0
- data/spec/api/version_api_spec.rb +54 -0
- data/spec/api/version_group_api_spec.rb +54 -0
- data/spec/api_client_spec.rb +224 -0
- data/spec/configuration_spec.rb +40 -0
- data/spec/spec_helper.rb +109 -0
- metadata +250 -0
@@ -0,0 +1,137 @@
|
|
1
|
+
# PokeApiClient::MoveAilmentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pokeapi.co*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**move_ailment_list**](MoveAilmentApi.md#move_ailment_list) | **GET** /api/v2/move-ailment/ | |
|
8
|
+
| [**move_ailment_read**](MoveAilmentApi.md#move_ailment_read) | **GET** /api/v2/move-ailment/{id}/ | |
|
9
|
+
|
10
|
+
|
11
|
+
## move_ailment_list
|
12
|
+
|
13
|
+
> String move_ailment_list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'pokeapi_client'
|
22
|
+
|
23
|
+
api_instance = PokeApiClient::MoveAilmentApi.new
|
24
|
+
opts = {
|
25
|
+
limit: 56, # Integer |
|
26
|
+
offset: 56 # Integer |
|
27
|
+
}
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
result = api_instance.move_ailment_list(opts)
|
32
|
+
p result
|
33
|
+
rescue PokeApiClient::ApiError => e
|
34
|
+
puts "Error when calling MoveAilmentApi->move_ailment_list: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the move_ailment_list_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(String, Integer, Hash)> move_ailment_list_with_http_info(opts)
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
|
47
|
+
data, status_code, headers = api_instance.move_ailment_list_with_http_info(opts)
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => String
|
51
|
+
rescue PokeApiClient::ApiError => e
|
52
|
+
puts "Error when calling MoveAilmentApi->move_ailment_list_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
| Name | Type | Description | Notes |
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
60
|
+
| **limit** | **Integer** | | [optional] |
|
61
|
+
| **offset** | **Integer** | | [optional] |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
**String**
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
No authorization required
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: text/plain
|
75
|
+
|
76
|
+
|
77
|
+
## move_ailment_read
|
78
|
+
|
79
|
+
> String move_ailment_read(id)
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
require 'time'
|
87
|
+
require 'pokeapi_client'
|
88
|
+
|
89
|
+
api_instance = PokeApiClient::MoveAilmentApi.new
|
90
|
+
id = 56 # Integer |
|
91
|
+
|
92
|
+
begin
|
93
|
+
|
94
|
+
result = api_instance.move_ailment_read(id)
|
95
|
+
p result
|
96
|
+
rescue PokeApiClient::ApiError => e
|
97
|
+
puts "Error when calling MoveAilmentApi->move_ailment_read: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
#### Using the move_ailment_read_with_http_info variant
|
102
|
+
|
103
|
+
This returns an Array which contains the response data, status code and headers.
|
104
|
+
|
105
|
+
> <Array(String, Integer, Hash)> move_ailment_read_with_http_info(id)
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
begin
|
109
|
+
|
110
|
+
data, status_code, headers = api_instance.move_ailment_read_with_http_info(id)
|
111
|
+
p status_code # => 2xx
|
112
|
+
p headers # => { ... }
|
113
|
+
p data # => String
|
114
|
+
rescue PokeApiClient::ApiError => e
|
115
|
+
puts "Error when calling MoveAilmentApi->move_ailment_read_with_http_info: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
| Name | Type | Description | Notes |
|
122
|
+
| ---- | ---- | ----------- | ----- |
|
123
|
+
| **id** | **Integer** | | |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
**String**
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
No authorization required
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: Not defined
|
136
|
+
- **Accept**: text/plain
|
137
|
+
|
data/docs/MoveApi.md
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
# PokeApiClient::MoveApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pokeapi.co*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**move_list**](MoveApi.md#move_list) | **GET** /api/v2/move/ | |
|
8
|
+
| [**move_read**](MoveApi.md#move_read) | **GET** /api/v2/move/{id}/ | |
|
9
|
+
|
10
|
+
|
11
|
+
## move_list
|
12
|
+
|
13
|
+
> String move_list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'pokeapi_client'
|
22
|
+
|
23
|
+
api_instance = PokeApiClient::MoveApi.new
|
24
|
+
opts = {
|
25
|
+
limit: 56, # Integer |
|
26
|
+
offset: 56 # Integer |
|
27
|
+
}
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
result = api_instance.move_list(opts)
|
32
|
+
p result
|
33
|
+
rescue PokeApiClient::ApiError => e
|
34
|
+
puts "Error when calling MoveApi->move_list: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the move_list_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(String, Integer, Hash)> move_list_with_http_info(opts)
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
|
47
|
+
data, status_code, headers = api_instance.move_list_with_http_info(opts)
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => String
|
51
|
+
rescue PokeApiClient::ApiError => e
|
52
|
+
puts "Error when calling MoveApi->move_list_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
| Name | Type | Description | Notes |
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
60
|
+
| **limit** | **Integer** | | [optional] |
|
61
|
+
| **offset** | **Integer** | | [optional] |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
**String**
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
No authorization required
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: text/plain
|
75
|
+
|
76
|
+
|
77
|
+
## move_read
|
78
|
+
|
79
|
+
> String move_read(id)
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
require 'time'
|
87
|
+
require 'pokeapi_client'
|
88
|
+
|
89
|
+
api_instance = PokeApiClient::MoveApi.new
|
90
|
+
id = 56 # Integer |
|
91
|
+
|
92
|
+
begin
|
93
|
+
|
94
|
+
result = api_instance.move_read(id)
|
95
|
+
p result
|
96
|
+
rescue PokeApiClient::ApiError => e
|
97
|
+
puts "Error when calling MoveApi->move_read: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
#### Using the move_read_with_http_info variant
|
102
|
+
|
103
|
+
This returns an Array which contains the response data, status code and headers.
|
104
|
+
|
105
|
+
> <Array(String, Integer, Hash)> move_read_with_http_info(id)
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
begin
|
109
|
+
|
110
|
+
data, status_code, headers = api_instance.move_read_with_http_info(id)
|
111
|
+
p status_code # => 2xx
|
112
|
+
p headers # => { ... }
|
113
|
+
p data # => String
|
114
|
+
rescue PokeApiClient::ApiError => e
|
115
|
+
puts "Error when calling MoveApi->move_read_with_http_info: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
| Name | Type | Description | Notes |
|
122
|
+
| ---- | ---- | ----------- | ----- |
|
123
|
+
| **id** | **Integer** | | |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
**String**
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
No authorization required
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: Not defined
|
136
|
+
- **Accept**: text/plain
|
137
|
+
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# PokeApiClient::MoveBattleStyleApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pokeapi.co*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**move_battle_style_list**](MoveBattleStyleApi.md#move_battle_style_list) | **GET** /api/v2/move-battle-style/ | |
|
8
|
+
| [**move_battle_style_read**](MoveBattleStyleApi.md#move_battle_style_read) | **GET** /api/v2/move-battle-style/{id}/ | |
|
9
|
+
|
10
|
+
|
11
|
+
## move_battle_style_list
|
12
|
+
|
13
|
+
> String move_battle_style_list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'pokeapi_client'
|
22
|
+
|
23
|
+
api_instance = PokeApiClient::MoveBattleStyleApi.new
|
24
|
+
opts = {
|
25
|
+
limit: 56, # Integer |
|
26
|
+
offset: 56 # Integer |
|
27
|
+
}
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
result = api_instance.move_battle_style_list(opts)
|
32
|
+
p result
|
33
|
+
rescue PokeApiClient::ApiError => e
|
34
|
+
puts "Error when calling MoveBattleStyleApi->move_battle_style_list: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the move_battle_style_list_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(String, Integer, Hash)> move_battle_style_list_with_http_info(opts)
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
|
47
|
+
data, status_code, headers = api_instance.move_battle_style_list_with_http_info(opts)
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => String
|
51
|
+
rescue PokeApiClient::ApiError => e
|
52
|
+
puts "Error when calling MoveBattleStyleApi->move_battle_style_list_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
| Name | Type | Description | Notes |
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
60
|
+
| **limit** | **Integer** | | [optional] |
|
61
|
+
| **offset** | **Integer** | | [optional] |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
**String**
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
No authorization required
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: text/plain
|
75
|
+
|
76
|
+
|
77
|
+
## move_battle_style_read
|
78
|
+
|
79
|
+
> String move_battle_style_read(id)
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
require 'time'
|
87
|
+
require 'pokeapi_client'
|
88
|
+
|
89
|
+
api_instance = PokeApiClient::MoveBattleStyleApi.new
|
90
|
+
id = 56 # Integer |
|
91
|
+
|
92
|
+
begin
|
93
|
+
|
94
|
+
result = api_instance.move_battle_style_read(id)
|
95
|
+
p result
|
96
|
+
rescue PokeApiClient::ApiError => e
|
97
|
+
puts "Error when calling MoveBattleStyleApi->move_battle_style_read: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
#### Using the move_battle_style_read_with_http_info variant
|
102
|
+
|
103
|
+
This returns an Array which contains the response data, status code and headers.
|
104
|
+
|
105
|
+
> <Array(String, Integer, Hash)> move_battle_style_read_with_http_info(id)
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
begin
|
109
|
+
|
110
|
+
data, status_code, headers = api_instance.move_battle_style_read_with_http_info(id)
|
111
|
+
p status_code # => 2xx
|
112
|
+
p headers # => { ... }
|
113
|
+
p data # => String
|
114
|
+
rescue PokeApiClient::ApiError => e
|
115
|
+
puts "Error when calling MoveBattleStyleApi->move_battle_style_read_with_http_info: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
| Name | Type | Description | Notes |
|
122
|
+
| ---- | ---- | ----------- | ----- |
|
123
|
+
| **id** | **Integer** | | |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
**String**
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
No authorization required
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: Not defined
|
136
|
+
- **Accept**: text/plain
|
137
|
+
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# PokeApiClient::MoveCategoryApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pokeapi.co*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**move_category_list**](MoveCategoryApi.md#move_category_list) | **GET** /api/v2/move-category/ | |
|
8
|
+
| [**move_category_read**](MoveCategoryApi.md#move_category_read) | **GET** /api/v2/move-category/{id}/ | |
|
9
|
+
|
10
|
+
|
11
|
+
## move_category_list
|
12
|
+
|
13
|
+
> String move_category_list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'pokeapi_client'
|
22
|
+
|
23
|
+
api_instance = PokeApiClient::MoveCategoryApi.new
|
24
|
+
opts = {
|
25
|
+
limit: 56, # Integer |
|
26
|
+
offset: 56 # Integer |
|
27
|
+
}
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
result = api_instance.move_category_list(opts)
|
32
|
+
p result
|
33
|
+
rescue PokeApiClient::ApiError => e
|
34
|
+
puts "Error when calling MoveCategoryApi->move_category_list: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the move_category_list_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(String, Integer, Hash)> move_category_list_with_http_info(opts)
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
|
47
|
+
data, status_code, headers = api_instance.move_category_list_with_http_info(opts)
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => String
|
51
|
+
rescue PokeApiClient::ApiError => e
|
52
|
+
puts "Error when calling MoveCategoryApi->move_category_list_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
| Name | Type | Description | Notes |
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
60
|
+
| **limit** | **Integer** | | [optional] |
|
61
|
+
| **offset** | **Integer** | | [optional] |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
**String**
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
No authorization required
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: text/plain
|
75
|
+
|
76
|
+
|
77
|
+
## move_category_read
|
78
|
+
|
79
|
+
> String move_category_read(id)
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
require 'time'
|
87
|
+
require 'pokeapi_client'
|
88
|
+
|
89
|
+
api_instance = PokeApiClient::MoveCategoryApi.new
|
90
|
+
id = 56 # Integer |
|
91
|
+
|
92
|
+
begin
|
93
|
+
|
94
|
+
result = api_instance.move_category_read(id)
|
95
|
+
p result
|
96
|
+
rescue PokeApiClient::ApiError => e
|
97
|
+
puts "Error when calling MoveCategoryApi->move_category_read: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
#### Using the move_category_read_with_http_info variant
|
102
|
+
|
103
|
+
This returns an Array which contains the response data, status code and headers.
|
104
|
+
|
105
|
+
> <Array(String, Integer, Hash)> move_category_read_with_http_info(id)
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
begin
|
109
|
+
|
110
|
+
data, status_code, headers = api_instance.move_category_read_with_http_info(id)
|
111
|
+
p status_code # => 2xx
|
112
|
+
p headers # => { ... }
|
113
|
+
p data # => String
|
114
|
+
rescue PokeApiClient::ApiError => e
|
115
|
+
puts "Error when calling MoveCategoryApi->move_category_read_with_http_info: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
| Name | Type | Description | Notes |
|
122
|
+
| ---- | ---- | ----------- | ----- |
|
123
|
+
| **id** | **Integer** | | |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
**String**
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
No authorization required
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: Not defined
|
136
|
+
- **Accept**: text/plain
|
137
|
+
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# PokeApiClient::MoveDamageClassApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pokeapi.co*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**move_damage_class_list**](MoveDamageClassApi.md#move_damage_class_list) | **GET** /api/v2/move-damage-class/ | |
|
8
|
+
| [**move_damage_class_read**](MoveDamageClassApi.md#move_damage_class_read) | **GET** /api/v2/move-damage-class/{id}/ | |
|
9
|
+
|
10
|
+
|
11
|
+
## move_damage_class_list
|
12
|
+
|
13
|
+
> String move_damage_class_list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'pokeapi_client'
|
22
|
+
|
23
|
+
api_instance = PokeApiClient::MoveDamageClassApi.new
|
24
|
+
opts = {
|
25
|
+
limit: 56, # Integer |
|
26
|
+
offset: 56 # Integer |
|
27
|
+
}
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
result = api_instance.move_damage_class_list(opts)
|
32
|
+
p result
|
33
|
+
rescue PokeApiClient::ApiError => e
|
34
|
+
puts "Error when calling MoveDamageClassApi->move_damage_class_list: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the move_damage_class_list_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(String, Integer, Hash)> move_damage_class_list_with_http_info(opts)
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
|
47
|
+
data, status_code, headers = api_instance.move_damage_class_list_with_http_info(opts)
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => String
|
51
|
+
rescue PokeApiClient::ApiError => e
|
52
|
+
puts "Error when calling MoveDamageClassApi->move_damage_class_list_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
| Name | Type | Description | Notes |
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
60
|
+
| **limit** | **Integer** | | [optional] |
|
61
|
+
| **offset** | **Integer** | | [optional] |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
**String**
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
No authorization required
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: text/plain
|
75
|
+
|
76
|
+
|
77
|
+
## move_damage_class_read
|
78
|
+
|
79
|
+
> String move_damage_class_read(id)
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
require 'time'
|
87
|
+
require 'pokeapi_client'
|
88
|
+
|
89
|
+
api_instance = PokeApiClient::MoveDamageClassApi.new
|
90
|
+
id = 56 # Integer |
|
91
|
+
|
92
|
+
begin
|
93
|
+
|
94
|
+
result = api_instance.move_damage_class_read(id)
|
95
|
+
p result
|
96
|
+
rescue PokeApiClient::ApiError => e
|
97
|
+
puts "Error when calling MoveDamageClassApi->move_damage_class_read: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
#### Using the move_damage_class_read_with_http_info variant
|
102
|
+
|
103
|
+
This returns an Array which contains the response data, status code and headers.
|
104
|
+
|
105
|
+
> <Array(String, Integer, Hash)> move_damage_class_read_with_http_info(id)
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
begin
|
109
|
+
|
110
|
+
data, status_code, headers = api_instance.move_damage_class_read_with_http_info(id)
|
111
|
+
p status_code # => 2xx
|
112
|
+
p headers # => { ... }
|
113
|
+
p data # => String
|
114
|
+
rescue PokeApiClient::ApiError => e
|
115
|
+
puts "Error when calling MoveDamageClassApi->move_damage_class_read_with_http_info: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
| Name | Type | Description | Notes |
|
122
|
+
| ---- | ---- | ----------- | ----- |
|
123
|
+
| **id** | **Integer** | | |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
**String**
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
No authorization required
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: Not defined
|
136
|
+
- **Accept**: text/plain
|
137
|
+
|