riot_games_api 0.0.2
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/.gitignore +18 -0
- data/.rubocop.yml +28 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +192 -0
- data/Rakefile +5 -0
- data/lib/riot_games_api/lol/client.rb +57 -0
- data/lib/riot_games_api/lol/constant/champions.rb +125 -0
- data/lib/riot_games_api/lol/constant/items.rb +186 -0
- data/lib/riot_games_api/lol/model/champion/champion.rb +18 -0
- data/lib/riot_games_api/lol/model/champion.rb +10 -0
- data/lib/riot_games_api/lol/model/corecion/time.rb +16 -0
- data/lib/riot_games_api/lol/model/game/game.rb +27 -0
- data/lib/riot_games_api/lol/model/game/player.rb +15 -0
- data/lib/riot_games_api/lol/model/game/raw_stats.rb +88 -0
- data/lib/riot_games_api/lol/model/game/recent_game.rb +14 -0
- data/lib/riot_games_api/lol/model/game.rb +13 -0
- data/lib/riot_games_api/lol/model/league/league.rb +17 -0
- data/lib/riot_games_api/lol/model/league/league_item.rb +35 -0
- data/lib/riot_games_api/lol/model/league/mini_series.rb +17 -0
- data/lib/riot_games_api/lol/model/league.rb +12 -0
- data/lib/riot_games_api/lol/model/static_data/basic_data.rb +35 -0
- data/lib/riot_games_api/lol/model/static_data/basic_data_stats.rb +77 -0
- data/lib/riot_games_api/lol/model/static_data/block.rb +14 -0
- data/lib/riot_games_api/lol/model/static_data/block_item.rb +14 -0
- data/lib/riot_games_api/lol/model/static_data/champion.rb +29 -0
- data/lib/riot_games_api/lol/model/static_data/champion_list.rb +17 -0
- data/lib/riot_games_api/lol/model/static_data/champion_list_data_by_id.rb +11 -0
- data/lib/riot_games_api/lol/model/static_data/champion_spell.rb +32 -0
- data/lib/riot_games_api/lol/model/static_data/gold.rb +16 -0
- data/lib/riot_games_api/lol/model/static_data/group.rb +14 -0
- data/lib/riot_games_api/lol/model/static_data/image.rb +19 -0
- data/lib/riot_games_api/lol/model/static_data/info.rb +16 -0
- data/lib/riot_games_api/lol/model/static_data/item.rb +35 -0
- data/lib/riot_games_api/lol/model/static_data/item_list.rb +18 -0
- data/lib/riot_games_api/lol/model/static_data/item_tree.rb +14 -0
- data/lib/riot_games_api/lol/model/static_data/level_tip.rb +14 -0
- data/lib/riot_games_api/lol/model/static_data/mastery.rb +19 -0
- data/lib/riot_games_api/lol/model/static_data/mastery_list.rb +16 -0
- data/lib/riot_games_api/lol/model/static_data/mastery_tree.rb +15 -0
- data/lib/riot_games_api/lol/model/static_data/mastery_tree_item.rb +14 -0
- data/lib/riot_games_api/lol/model/static_data/mastery_tree_list.rb +13 -0
- data/lib/riot_games_api/lol/model/static_data/meta_data.rb +18 -0
- data/lib/riot_games_api/lol/model/static_data/passive.rb +16 -0
- data/lib/riot_games_api/lol/model/static_data/realm.rb +21 -0
- data/lib/riot_games_api/lol/model/static_data/recommended.rb +19 -0
- data/lib/riot_games_api/lol/model/static_data/rune.rb +35 -0
- data/lib/riot_games_api/lol/model/static_data/rune_list.rb +16 -0
- data/lib/riot_games_api/lol/model/static_data/skin.rb +15 -0
- data/lib/riot_games_api/lol/model/static_data/spell_vars.rb +16 -0
- data/lib/riot_games_api/lol/model/static_data/stats.rb +32 -0
- data/lib/riot_games_api/lol/model/static_data/summoner_spell.rb +35 -0
- data/lib/riot_games_api/lol/model/static_data/summoner_spell_list.rb +15 -0
- data/lib/riot_games_api/lol/model/static_data/summoner_spell_list_data_by_id.rb +11 -0
- data/lib/riot_games_api/lol/model/static_data.rb +47 -0
- data/lib/riot_games_api/lol/model/stats/aggregated_stats.rb +68 -0
- data/lib/riot_games_api/lol/model/stats/champion_stats.rb +14 -0
- data/lib/riot_games_api/lol/model/stats/player_stats_summary.rb +17 -0
- data/lib/riot_games_api/lol/model/stats/player_stats_summary_list.rb +14 -0
- data/lib/riot_games_api/lol/model/stats/ranked_stats.rb +15 -0
- data/lib/riot_games_api/lol/model/stats.rb +15 -0
- data/lib/riot_games_api/lol/model/summoner/mastery.rb +14 -0
- data/lib/riot_games_api/lol/model/summoner/mastery_page.rb +16 -0
- data/lib/riot_games_api/lol/model/summoner/mastery_page_list.rb +14 -0
- data/lib/riot_games_api/lol/model/summoner/rune_page.rb +16 -0
- data/lib/riot_games_api/lol/model/summoner/rune_page_list.rb +14 -0
- data/lib/riot_games_api/lol/model/summoner/rune_slot.rb +14 -0
- data/lib/riot_games_api/lol/model/summoner/summoner.rb +17 -0
- data/lib/riot_games_api/lol/model/summoner.rb +16 -0
- data/lib/riot_games_api/lol/model/team/match_history_summary.rb +23 -0
- data/lib/riot_games_api/lol/model/team/message_of_day.rb +15 -0
- data/lib/riot_games_api/lol/model/team/roster.rb +14 -0
- data/lib/riot_games_api/lol/model/team/team.rb +27 -0
- data/lib/riot_games_api/lol/model/team/team_member_info.rb +16 -0
- data/lib/riot_games_api/lol/model/team/team_stat_detail.rb +17 -0
- data/lib/riot_games_api/lol/model/team/team_stat_summary.rb +14 -0
- data/lib/riot_games_api/lol/model/team.rb +16 -0
- data/lib/riot_games_api/lol/model.rb +16 -0
- data/lib/riot_games_api/lol/resource/base.rb +22 -0
- data/lib/riot_games_api/lol/resource/champion.rb +39 -0
- data/lib/riot_games_api/lol/resource/game.rb +23 -0
- data/lib/riot_games_api/lol/resource/league.rb +65 -0
- data/lib/riot_games_api/lol/resource/static_data.rb +91 -0
- data/lib/riot_games_api/lol/resource/stats.rb +28 -0
- data/lib/riot_games_api/lol/resource/summoner.rb +52 -0
- data/lib/riot_games_api/lol/resource/team.rb +34 -0
- data/lib/riot_games_api/lol/resource.rb +15 -0
- data/lib/riot_games_api/version.rb +3 -0
- data/lib/riot_games_api.rb +15 -0
- data/riot_games_api.gemspec +34 -0
- data/spec/lol/resource/champion_spec.rb +27 -0
- data/spec/lol/resource/game_spec.rb +40 -0
- data/spec/lol/resource/league_spec.rb +93 -0
- data/spec/lol/resource/static_data_spec.rb +215 -0
- data/spec/lol/resource/stats_spec.rb +57 -0
- data/spec/lol/resource/summoner_spec.rb +80 -0
- data/spec/lol/resource/team_spec.rb +31 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Champion/_all/should_first_record_is_Aatrox.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Champion/_by_champion_id/should_be_Teemo.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Champion/_free/should_be_only_free_champions.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_champinons_is_Talon_in_first_game_record.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_first_fellow_player_s_team_is_blue.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_first_game_is_win.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_game_record_have_player_model.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_game_record_have_raw_stats_model.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_game_records_count_is_10.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Game/_recent/should_have_summoner_id.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_summoner_id/should_have_league_item_entries.yml +1497 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_summoner_id/should_phantoml0ad_is_in_league_which_name_is_Nasus_s_Agents.yml +1497 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_summoner_id_only_own_entry/should_ojarusang_is_in_series.yml +43 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_summoner_id_only_own_entry/should_ojarusang_s_tier_is_platinum.yml +43 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_team_id/should_have_league_item_entries.yml +864 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_team_id/should_rascal_jester_is_in_league_which_name_is_Nunu_s_Outriders.yml +864 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_team_id_only_own_entry/should_ffg_practice_is_not_in_series.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_by_team_id_only_own_entry/should_ffg_practice_tier_is_challenger.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_challenger_solo_5v5/should_queue_is_ranked_solo_5v5.yml +1281 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_challenger_solo_5v5/should_tier_is_challenger.yml +1281 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_challenger_team_3v3/should_queue_is_ranked_team_3v3.yml +123 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_challenger_team_3v3/should_tier_is_challenger.yml +123 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_challenger_team_5v5/should_queue_is_ranked_team_5v5.yml +61 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_League/_challenger_team_5v5/should_tier_is_challenger.yml +61 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/_realm/should_have_data_cdn_is_cdn_url.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/_realm/should_have_static_data_of_realm.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_all/key_by_id_is_false/should_have_inputed_data_version.yml +38011 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_all/key_by_id_is_false/should_have_static_data_key_with_champion_name.yml +38011 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_all/key_by_id_is_false/should_have_static_data_of_champions.yml +38011 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_all/key_by_id_is_true/should_have_static_data_keys_is_champion_id.yml +38000 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_all/key_by_id_is_true/should_have_static_data_of_champion.yml +38000 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_by_id/should_have_data_key_is_shaco.yml +151 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/champion/_champion_by_id/should_have_static_data_of_champion.yml +151 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/item/_item_all/should_have_inputed_data_version.yml +2388 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/item/_item_all/should_have_static_data_of_items.yml +2388 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/item/_item_all/should_have_static_data_with_item_name.yml +2388 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/item/_item_by_id/should_have_data_name_is_biscuit.yml +46 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/item/_item_by_id/should_have_static_data_of_item.yml +46 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/mastery/_mastery_all/should_have_inputed_data_version.yml +240 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/mastery/_mastery_all/should_have_static_data_of_masterys.yml +240 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/mastery/_mastery_all/should_have_static_data_with_mastery_name.yml +240 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/mastery/_mastery_by_id/should_have_data_name_is_sorcery.yml +47 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/mastery/_mastery_by_id/should_have_static_data_of_mastery.yml +47 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/rune/_rune_all/should_have_inputed_data_version.yml +733 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/rune/_rune_all/should_have_static_data_of_runes.yml +733 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/rune/_rune_all/should_have_static_data_with_rune_name.yml +733 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/rune/_rune_by_id/should_have_data_name_is_rune_name.yml +45 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/rune/_rune_by_id/should_have_static_data_of_rune.yml +45 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_all/key_by_id_is_false/should_have_inputed_data_version.yml +156 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_all/key_by_id_is_false/should_have_static_data_key_with_summoner_spell_name.yml +156 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_all/key_by_id_is_false/should_have_static_data_of_summoner_spell.yml +156 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_all/key_by_id_is_true/should_have_static_data_keys_is_sumoner_spell_id.yml +156 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_all/key_by_id_is_true/should_have_static_data_of_summoner_spell.yml +156 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_by_id/should_have_data_name_is_teleport.yml +55 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_StaticData/summoner_spell/_summoner_spell_by_id/should_have_static_data_of_summoner_spell.yml +55 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_ranked/latest_season/should_not_found_ranked_stats.yml +57 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_ranked/season3/should_have_champion_stats.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_ranked/season3/should_have_modify_data_which_unixtime_milliseconds.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_summary/latest_season/should_have_player_stat_summaries.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_summary/latest_season/should_have_summoner_id_inputed.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_summary/season3/should_have_player_stat_summaries.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Stats/_summary/season3/should_have_summoner_id_inputed.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_by_id/should_have_key_which_is_summoner_id.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_by_id/should_have_summoner_model.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_by_id/should_summoner_model_have_summoner_level.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_by_name/should_have_key_which_is_summoner_name.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_by_name/should_have_summoner_model.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_by_name/should_summoner_model_have_summoner_level.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_masteries/should_have_key_which_is_summoner_id.yml +52 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_masteries/should_have_mastery_page_list_model.yml +52 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_masteries/should_have_mastery_page_model.yml +52 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_name/should_have_summoner_name.yml +44 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_runes/should_have_key_which_is_summoner_id.yml +56 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_runes/should_have_rune_page_list_model.yml +56 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Summoner/_runes/should_have_rune_page_model.yml +56 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Team/_by_summoner_id/should_have_focus_me_s_full_id.yml +314 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Team/_by_summoner_id/should_have_team_model.yml +314 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Team/_by_team_id/should_have_key_which_is_team_id.yml +165 -0
- data/spec/vcr_cassettes/RiotGamesApi_LOL_Resource_Team/_by_team_id/should_have_team_model.yml +165 -0
- metadata +484 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class Mastery
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :description, Array[String]
|
|
9
|
+
attribute :id, Integer
|
|
10
|
+
attribute :image, RiotGamesApi::LOL::Model::StaticData::Image
|
|
11
|
+
attribute :name, String
|
|
12
|
+
attribute :prereq, String
|
|
13
|
+
attribute :ranks, Integer
|
|
14
|
+
attribute :sanitized_description, Array[String]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class MasteryList
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :data, Hash[Integer => RiotGamesApi::LOL::Model::StaticData::Mastery]
|
|
9
|
+
attribute :tree, RiotGamesApi::LOL::Model::StaticData::MasteryTree
|
|
10
|
+
attribute :type, String
|
|
11
|
+
attribute :version, String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class MasteryTree
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :defense, Array[RiotGamesApi::LOL::Model::StaticData::MasteryTreeList]
|
|
9
|
+
attribute :offense, Array[RiotGamesApi::LOL::Model::StaticData::MasteryTreeList]
|
|
10
|
+
attribute :utility, Array[RiotGamesApi::LOL::Model::StaticData::MasteryTreeList]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class MetaData
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :is_rune, Boolean
|
|
9
|
+
attribute :tier, Integer
|
|
10
|
+
attribute :type, String
|
|
11
|
+
|
|
12
|
+
alias_method :rune, :is_rune
|
|
13
|
+
alias_method :rune?, :is_rune?
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class Passive
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :description, String
|
|
9
|
+
attribute :image, RiotGamesApi::LOL::Model::StaticData::Image
|
|
10
|
+
attribute :name, String
|
|
11
|
+
attribute :sanitized_description, String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class Realm
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :cdn, String
|
|
9
|
+
attribute :css, String
|
|
10
|
+
attribute :dd, String
|
|
11
|
+
attribute :l, String
|
|
12
|
+
attribute :lg, String
|
|
13
|
+
attribute :n, Hash[String => String]
|
|
14
|
+
attribute :profileiconmax, Integer
|
|
15
|
+
attribute :store, String
|
|
16
|
+
attribute :v, String
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class Recommended
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :blocks, Array[RiotGamesApi::LOL::Model::StaticData::Block]
|
|
9
|
+
attribute :champion, String
|
|
10
|
+
attribute :map, String
|
|
11
|
+
attribute :mode, String
|
|
12
|
+
attribute :priority, Boolean
|
|
13
|
+
attribute :title, String
|
|
14
|
+
attribute :type, String
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class Rune
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :colloq, String
|
|
9
|
+
attribute :consume_on_full, Boolean
|
|
10
|
+
attribute :consumed, Boolean
|
|
11
|
+
attribute :depth, Integer
|
|
12
|
+
attribute :description, String
|
|
13
|
+
attribute :from, Array[String]
|
|
14
|
+
attribute :gold, RiotGamesApi::LOL::Model::StaticData::Gold
|
|
15
|
+
attribute :group, String
|
|
16
|
+
attribute :hide_from_all, Boolean
|
|
17
|
+
attribute :id, Integer
|
|
18
|
+
attribute :image, RiotGamesApi::LOL::Model::StaticData::Image
|
|
19
|
+
attribute :in_store, Boolean
|
|
20
|
+
attribute :into, Array[String]
|
|
21
|
+
attribute :maps, Hash[Integer => Boolean]
|
|
22
|
+
attribute :name, String
|
|
23
|
+
attribute :plaintext, String
|
|
24
|
+
attribute :required_champion, String
|
|
25
|
+
attribute :rune, RiotGamesApi::LOL::Model::StaticData::MetaData
|
|
26
|
+
attribute :sanitized_description, String
|
|
27
|
+
attribute :special_recipe, Integer
|
|
28
|
+
attribute :stacks, Integer
|
|
29
|
+
attribute :stats, RiotGamesApi::LOL::Model::StaticData::BasicDataStats
|
|
30
|
+
attribute :tags, Array[String]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class RuneList
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :basic, RiotGamesApi::LOL::Model::StaticData::BasicData
|
|
9
|
+
attribute :data, Hash[Integer => RiotGamesApi::LOL::Model::StaticData::Rune]
|
|
10
|
+
attribute :type, String
|
|
11
|
+
attribute :version, String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class SpellVars
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :coeff, Array[Float]
|
|
9
|
+
attribute :dyn, String
|
|
10
|
+
attribute :key, String
|
|
11
|
+
attribute :link, String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class Stats
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :armor, Float
|
|
9
|
+
attribute :armorperlevel, Float
|
|
10
|
+
attribute :attackdamage, Float
|
|
11
|
+
attribute :attackdamageperlevel, Float
|
|
12
|
+
attribute :attackrange, Float
|
|
13
|
+
attribute :attackspeedoffset, Float
|
|
14
|
+
attribute :attackspeedperlevel, Float
|
|
15
|
+
attribute :crit, Float
|
|
16
|
+
attribute :critperlevel, Float
|
|
17
|
+
attribute :hp, Float
|
|
18
|
+
attribute :hpperlevel, Float
|
|
19
|
+
attribute :hpregen, Float
|
|
20
|
+
attribute :hpregenperlevel, Float
|
|
21
|
+
attribute :movespeed, Float
|
|
22
|
+
attribute :mp, Float
|
|
23
|
+
attribute :mpperlevel, Float
|
|
24
|
+
attribute :mpregen, Float
|
|
25
|
+
attribute :mpregenperlevel, Float
|
|
26
|
+
attribute :spellblock, Float
|
|
27
|
+
attribute :spellblockperlevel, Float
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class SummonerSpell
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :cooldown, Array[Integer]
|
|
9
|
+
attribute :cooldown_burn, String
|
|
10
|
+
attribute :cost, Array[Integer]
|
|
11
|
+
attribute :cost_burn, String
|
|
12
|
+
attribute :cost_type, String
|
|
13
|
+
attribute :description, String
|
|
14
|
+
attribute :effect, Array[Array[Integer]]
|
|
15
|
+
attribute :effect_burn, Array[String]
|
|
16
|
+
attribute :id, Integer
|
|
17
|
+
attribute :image, RiotGamesApi::LOL::Model::StaticData::Image
|
|
18
|
+
attribute :key, String
|
|
19
|
+
attribute :leveltip, RiotGamesApi::LOL::Model::StaticData::LevelTip
|
|
20
|
+
attribute :maxrank, Integer
|
|
21
|
+
attribute :modes, Array[String]
|
|
22
|
+
attribute :name, String
|
|
23
|
+
attribute :range, Array # array of integer or string
|
|
24
|
+
attribute :range_burn, String
|
|
25
|
+
attribute :resource, String
|
|
26
|
+
attribute :sanitized_description, String
|
|
27
|
+
attribute :sanitized_tooltip, String
|
|
28
|
+
attribute :summoner_level, Integer
|
|
29
|
+
attribute :tooltip, String
|
|
30
|
+
attribute :vars, Array[RiotGamesApi::LOL::Model::StaticData::SpellVars]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module StaticData
|
|
5
|
+
class SummonerSpellList
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :data, Hash[String => RiotGamesApi::LOL::Model::StaticData::SummonerSpell]
|
|
9
|
+
attribute :type, String
|
|
10
|
+
attribute :version, String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
require 'riot_games_api/lol/model/static_data/block_item'
|
|
2
|
+
require 'riot_games_api/lol/model/static_data/block'
|
|
3
|
+
require 'riot_games_api/lol/model/static_data/spell_vars'
|
|
4
|
+
require 'riot_games_api/lol/model/static_data/level_tip'
|
|
5
|
+
require 'riot_games_api/lol/model/static_data/stats'
|
|
6
|
+
require 'riot_games_api/lol/model/static_data/skin'
|
|
7
|
+
require 'riot_games_api/lol/model/static_data/recommended'
|
|
8
|
+
require 'riot_games_api/lol/model/static_data/image'
|
|
9
|
+
require 'riot_games_api/lol/model/static_data/passive'
|
|
10
|
+
require 'riot_games_api/lol/model/static_data/info'
|
|
11
|
+
require 'riot_games_api/lol/model/static_data/champion_spell'
|
|
12
|
+
require 'riot_games_api/lol/model/static_data/champion'
|
|
13
|
+
require 'riot_games_api/lol/model/static_data/champion_list'
|
|
14
|
+
require 'riot_games_api/lol/model/static_data/champion_list_data_by_id'
|
|
15
|
+
|
|
16
|
+
require 'riot_games_api/lol/model/static_data/meta_data'
|
|
17
|
+
require 'riot_games_api/lol/model/static_data/gold'
|
|
18
|
+
require 'riot_games_api/lol/model/static_data/basic_data_stats'
|
|
19
|
+
require 'riot_games_api/lol/model/static_data/item_tree'
|
|
20
|
+
require 'riot_games_api/lol/model/static_data/item'
|
|
21
|
+
require 'riot_games_api/lol/model/static_data/group'
|
|
22
|
+
require 'riot_games_api/lol/model/static_data/basic_data'
|
|
23
|
+
require 'riot_games_api/lol/model/static_data/item_list'
|
|
24
|
+
|
|
25
|
+
require 'riot_games_api/lol/model/static_data/mastery_tree_item'
|
|
26
|
+
require 'riot_games_api/lol/model/static_data/mastery_tree_list'
|
|
27
|
+
require 'riot_games_api/lol/model/static_data/mastery_tree'
|
|
28
|
+
require 'riot_games_api/lol/model/static_data/mastery'
|
|
29
|
+
require 'riot_games_api/lol/model/static_data/mastery_list'
|
|
30
|
+
|
|
31
|
+
require 'riot_games_api/lol/model/static_data/realm'
|
|
32
|
+
|
|
33
|
+
require 'riot_games_api/lol/model/static_data/rune'
|
|
34
|
+
require 'riot_games_api/lol/model/static_data/rune_list'
|
|
35
|
+
|
|
36
|
+
require 'riot_games_api/lol/model/static_data/summoner_spell'
|
|
37
|
+
require 'riot_games_api/lol/model/static_data/summoner_spell_list'
|
|
38
|
+
require 'riot_games_api/lol/model/static_data/summoner_spell_list_data_by_id'
|
|
39
|
+
|
|
40
|
+
module RiotGamesApi
|
|
41
|
+
module LOL
|
|
42
|
+
module Model
|
|
43
|
+
module StaticData
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Stats
|
|
5
|
+
class AggregatedStats
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :average_assists, Integer
|
|
9
|
+
attribute :average_champions_killed, Integer
|
|
10
|
+
attribute :average_combat_player_score, Integer
|
|
11
|
+
attribute :average_node_capture, Integer
|
|
12
|
+
attribute :average_node_capture_assist, Integer
|
|
13
|
+
attribute :average_node_neutralize, Integer
|
|
14
|
+
attribute :average_node_neutralize_assist, Integer
|
|
15
|
+
attribute :average_num_deaths, Integer
|
|
16
|
+
attribute :average_objective_player_score, Integer
|
|
17
|
+
attribute :average_team_objective, Integer
|
|
18
|
+
attribute :average_total_player_score, Integer
|
|
19
|
+
attribute :bot_games_played, Integer
|
|
20
|
+
attribute :killing_spree, Integer
|
|
21
|
+
attribute :max_assists, Integer
|
|
22
|
+
attribute :max_champions_killed, Integer
|
|
23
|
+
attribute :max_combat_player_score, Integer
|
|
24
|
+
attribute :max_largest_critical_strike, Integer
|
|
25
|
+
attribute :max_largest_killing_spree, Integer
|
|
26
|
+
attribute :max_node_capture, Integer
|
|
27
|
+
attribute :max_node_capture_assist, Integer
|
|
28
|
+
attribute :max_node_neutralize, Integer
|
|
29
|
+
attribute :max_node_neutralize_assist, Integer
|
|
30
|
+
attribute :max_num_deaths, Integer
|
|
31
|
+
attribute :max_objective_player_score, Integer
|
|
32
|
+
attribute :max_team_objective, Integer
|
|
33
|
+
attribute :max_time_played, Integer
|
|
34
|
+
attribute :max_time_spent_living, Integer
|
|
35
|
+
attribute :max_total_player_score, Integer
|
|
36
|
+
attribute :most_champion_kills_per_session, Integer
|
|
37
|
+
attribute :most_spells_cast, Integer
|
|
38
|
+
attribute :normal_games_played, Integer
|
|
39
|
+
attribute :ranked_premade_games_played, Integer
|
|
40
|
+
attribute :ranked_solo_games_played, Integer
|
|
41
|
+
attribute :total_assists, Integer
|
|
42
|
+
attribute :total_champion_kills, Integer
|
|
43
|
+
attribute :total_damage_dealt, Integer
|
|
44
|
+
attribute :total_damage_taken, Integer
|
|
45
|
+
attribute :total_deaths_per_session, Integer
|
|
46
|
+
attribute :total_double_kills, Integer
|
|
47
|
+
attribute :total_first_blood, Integer
|
|
48
|
+
attribute :total_gold_earned, Integer
|
|
49
|
+
attribute :total_heal, Integer
|
|
50
|
+
attribute :total_magic_damage_dealt, Integer
|
|
51
|
+
attribute :total_minion_kills, Integer
|
|
52
|
+
attribute :total_neutral_minions_killed, Integer
|
|
53
|
+
attribute :total_node_capture, Integer
|
|
54
|
+
attribute :total_node_neutralize, Integer
|
|
55
|
+
attribute :total_penta_kills, Integer
|
|
56
|
+
attribute :total_physical_damage_dealt, Integer
|
|
57
|
+
attribute :total_quadra_kills, Integer
|
|
58
|
+
attribute :total_sessions_lost, Integer
|
|
59
|
+
attribute :total_sessions_played, Integer
|
|
60
|
+
attribute :total_sessions_won, Integer
|
|
61
|
+
attribute :total_triple_kills, Integer
|
|
62
|
+
attribute :total_turrets_killed, Integer
|
|
63
|
+
attribute :total_unreal_kills, Integer
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Stats
|
|
5
|
+
class ChampionStats
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :id, Integer # id: 0 is represents the combined stats for all champions
|
|
9
|
+
attribute :stats, RiotGamesApi::LOL::Model::Stats::AggregatedStats
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Stats
|
|
5
|
+
class PlayerStatsSummary
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :aggregated_stats, RiotGamesApi::LOL::Model::Stats::AggregatedStats
|
|
9
|
+
attribute :losses, Integer
|
|
10
|
+
attribute :modify_date, RiotGamesApi::LOL::Model::Corecion::Time
|
|
11
|
+
attribute :player_stat_summary_type, String
|
|
12
|
+
attribute :wins, String
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Stats
|
|
5
|
+
class PlayerStatsSummaryList
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :player_stat_summaries, Array[RiotGamesApi::LOL::Model::Stats::PlayerStatsSummary]
|
|
9
|
+
attribute :summoner_id, Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Stats
|
|
5
|
+
class RankedStats
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :champions, Array[RiotGamesApi::LOL::Model::Stats::ChampionStats]
|
|
9
|
+
attribute :modify_date, RiotGamesApi::LOL::Model::Corecion::Time
|
|
10
|
+
attribute :summoner_id, Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
require 'riot_games_api/lol/model/stats/aggregated_stats'
|
|
2
|
+
require 'riot_games_api/lol/model/stats/champion_stats'
|
|
3
|
+
require 'riot_games_api/lol/model/stats/ranked_stats'
|
|
4
|
+
|
|
5
|
+
require 'riot_games_api/lol/model/stats/player_stats_summary'
|
|
6
|
+
require 'riot_games_api/lol/model/stats/player_stats_summary_list'
|
|
7
|
+
|
|
8
|
+
module RiotGamesApi
|
|
9
|
+
module LOL
|
|
10
|
+
module Model
|
|
11
|
+
module Stats
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Summoner
|
|
5
|
+
class MasteryPage
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :current, Boolean
|
|
9
|
+
attribute :id, Integer
|
|
10
|
+
attribute :masteries, Array[RiotGamesApi::LOL::Model::Summoner::Mastery]
|
|
11
|
+
attribute :name, String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Summoner
|
|
5
|
+
class MasteryPageList
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :pages, Set[RiotGamesApi::LOL::Model::Summoner::MasteryPage]
|
|
9
|
+
attribute :summoner_id, Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Summoner
|
|
5
|
+
class RunePage
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :current, Boolean
|
|
9
|
+
attribute :id, Integer
|
|
10
|
+
attribute :name, String
|
|
11
|
+
attribute :slots, Set[RiotGamesApi::LOL::Model::Summoner::RuneSlot]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module RiotGamesApi
|
|
2
|
+
module LOL
|
|
3
|
+
module Model
|
|
4
|
+
module Summoner
|
|
5
|
+
class Summoner
|
|
6
|
+
include Virtus.model
|
|
7
|
+
|
|
8
|
+
attribute :id, Integer
|
|
9
|
+
attribute :name, String
|
|
10
|
+
attribute :profile_icon_id, Integer
|
|
11
|
+
attribute :revision_date, RiotGamesApi::LOL::Model::Corecion::Time
|
|
12
|
+
attribute :summoner_level, Integer
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|