Module: RiotGamesApi::LOL

Defined in:
lib/riot_games_api/lol/model.rb,
lib/riot_games_api/lol/client.rb,
lib/riot_games_api/lol/resource.rb,
lib/riot_games_api/lol/model/game.rb,
lib/riot_games_api/lol/model/team.rb,
lib/riot_games_api/lol/model/stats.rb,
lib/riot_games_api/lol/model/league.rb,
lib/riot_games_api/lol/resource/base.rb,
lib/riot_games_api/lol/resource/game.rb,
lib/riot_games_api/lol/resource/team.rb,
lib/riot_games_api/lol/constant/items.rb,
lib/riot_games_api/lol/model/champion.rb,
lib/riot_games_api/lol/model/summoner.rb,
lib/riot_games_api/lol/resource/stats.rb,
lib/riot_games_api/lol/model/game/game.rb,
lib/riot_games_api/lol/model/team/team.rb,
lib/riot_games_api/lol/resource/league.rb,
lib/riot_games_api/lol/model/game/player.rb,
lib/riot_games_api/lol/model/static_data.rb,
lib/riot_games_api/lol/model/team/roster.rb,
lib/riot_games_api/lol/resource/champion.rb,
lib/riot_games_api/lol/resource/summoner.rb,
lib/riot_games_api/lol/constant/champions.rb,
lib/riot_games_api/lol/model/corecion/time.rb,
lib/riot_games_api/lol/model/league/league.rb,
lib/riot_games_api/lol/model/game/raw_stats.rb,
lib/riot_games_api/lol/resource/static_data.rb,
lib/riot_games_api/lol/model/game/recent_game.rb,
lib/riot_games_api/lol/model/static_data/gold.rb,
lib/riot_games_api/lol/model/static_data/info.rb,
lib/riot_games_api/lol/model/static_data/item.rb,
lib/riot_games_api/lol/model/static_data/rune.rb,
lib/riot_games_api/lol/model/static_data/skin.rb,
lib/riot_games_api/lol/model/summoner/mastery.rb,
lib/riot_games_api/lol/model/champion/champion.rb,
lib/riot_games_api/lol/model/static_data/block.rb,
lib/riot_games_api/lol/model/static_data/group.rb,
lib/riot_games_api/lol/model/static_data/image.rb,
lib/riot_games_api/lol/model/static_data/realm.rb,
lib/riot_games_api/lol/model/static_data/stats.rb,
lib/riot_games_api/lol/model/summoner/summoner.rb,
lib/riot_games_api/lol/model/league/league_item.rb,
lib/riot_games_api/lol/model/league/mini_series.rb,
lib/riot_games_api/lol/model/stats/ranked_stats.rb,
lib/riot_games_api/lol/model/summoner/rune_page.rb,
lib/riot_games_api/lol/model/summoner/rune_slot.rb,
lib/riot_games_api/lol/model/static_data/mastery.rb,
lib/riot_games_api/lol/model/static_data/passive.rb,
lib/riot_games_api/lol/model/team/message_of_day.rb,
lib/riot_games_api/lol/model/static_data/champion.rb,
lib/riot_games_api/lol/model/stats/champion_stats.rb,
lib/riot_games_api/lol/model/static_data/item_list.rb,
lib/riot_games_api/lol/model/static_data/item_tree.rb,
lib/riot_games_api/lol/model/static_data/level_tip.rb,
lib/riot_games_api/lol/model/static_data/meta_data.rb,
lib/riot_games_api/lol/model/static_data/rune_list.rb,
lib/riot_games_api/lol/model/summoner/mastery_page.rb,
lib/riot_games_api/lol/model/team/team_member_info.rb,
lib/riot_games_api/lol/model/team/team_stat_detail.rb,
lib/riot_games_api/lol/model/static_data/basic_data.rb,
lib/riot_games_api/lol/model/static_data/block_item.rb,
lib/riot_games_api/lol/model/static_data/spell_vars.rb,
lib/riot_games_api/lol/model/stats/aggregated_stats.rb,
lib/riot_games_api/lol/model/team/team_stat_summary.rb,
lib/riot_games_api/lol/model/static_data/recommended.rb,
lib/riot_games_api/lol/model/summoner/rune_page_list.rb,
lib/riot_games_api/lol/model/static_data/mastery_list.rb,
lib/riot_games_api/lol/model/static_data/mastery_tree.rb,
lib/riot_games_api/lol/model/static_data/champion_list.rb,
lib/riot_games_api/lol/model/static_data/champion_spell.rb,
lib/riot_games_api/lol/model/static_data/summoner_spell.rb,
lib/riot_games_api/lol/model/stats/player_stats_summary.rb,
lib/riot_games_api/lol/model/summoner/mastery_page_list.rb,
lib/riot_games_api/lol/model/team/match_history_summary.rb,
lib/riot_games_api/lol/model/static_data/basic_data_stats.rb,
lib/riot_games_api/lol/model/static_data/mastery_tree_item.rb,
lib/riot_games_api/lol/model/static_data/mastery_tree_list.rb,
lib/riot_games_api/lol/model/static_data/summoner_spell_list.rb,
lib/riot_games_api/lol/model/stats/player_stats_summary_list.rb,
lib/riot_games_api/lol/model/static_data/champion_list_data_by_id.rb,
lib/riot_games_api/lol/model/static_data/summoner_spell_list_data_by_id.rb

Defined Under Namespace

Modules: Model, Resource Classes: Client

Constant Summary collapse

ITEMS =

how to generate list client.static_data.item_all.data.each do |key, value|

p "#{key}: #{value[:id]}"

end

{
 aegis_of_the_legion: 3105,
 aether_wisp: 3113,
 amplifying_tome: 1052,
 ancient_coin: 3301,
 archangels_staff: 3003,
 archangels_staff_crystal_scar: 3007,
 ardent_censer: 3504,
 athenes_unholy_grail: 3174,
 atmas_impaler: 3005,
 augment_death: 3198,
 augment_gravity: 3197,
 augment_power: 3196,
 avarice_blade: 3093,
 b_f_sword: 1038,
 banner_of_command: 3060,
 banshees_veil: 3102,
 berserkers_greaves: 3006,
 bilgewater_cutlass: 3144,
 blackfire_torch: 3188,
 blade_of_the_ruined_king: 3153,
 blasting_wand: 1026,
 bonetooth_necklace_1: 3166,
 bonetooth_necklace_2: 3167,
 bonetooth_necklace_3: 3168,
 bonetooth_necklace_4: 3169,
 bonetooth_necklace_5: 3171,
 bonetooth_necklace_6: 3405,
 bonetooth_necklace_7: 3406,
 bonetooth_necklace_8: 3407,
 bonetooth_necklace_9: 3408,
 bonetooth_necklace_10: 3409,
 bonetooth_necklace_11: 3411,
 bonetooth_necklace_12: 3412,
 bonetooth_necklace_13: 3413,
 bonetooth_necklace_14: 3414,
 bonetooth_necklace_15: 3415,
 bonetooth_necklace_16: 3417,
 bonetooth_necklace_17: 3418,
 bonetooth_necklace_18: 3419,
 bonetooth_necklace_19: 3420,
 bonetooth_necklace_20: 3421,
 bonetooth_necklace_21: 3450,
 bonetooth_necklace_22: 3451,
 bonetooth_necklace_23: 3452,
 bonetooth_necklace_24: 3453,
 bonetooth_necklace_25: 3454,
 boots_of_mobility: 3117,
 boots_of_speed: 1001,
 boots_of_swiftness: 3009,
 brawlers_gloves: 1051,
 catalyst_the_protector: 3010,
 chain_vest: 1031,
 chalice_of_harmony: 3028,
 cloak_of_agility: 1018,
 cloth_armor: 1029,
 crystalline_flask: 2041,
 dagger: 1042,
 deathfire_grasp: 3128,
 dervish_blade: 3137,
 dorans_blade: 1055,
 dorans_blade_showdown: 1075,
 dorans_ring: 1056,
 dorans_ring_showdown: 1076,
 dorans_shield: 1054,
 dorans_shield_showdown: 1074,
 elixir_of_brilliance: 2039,
 elixir_of_fortitude: 2037,
 enchantment_abyssal_scepter: 3001,
 enchantment_alacrity_1: 3254,
 enchantment_alacrity_2: 3259,
 enchantment_alacrity_3: 3264,
 enchantment_alacrity_4: 3269,
 enchantment_alacrity_5: 3274,
 enchantment_alacrity_6: 3279,
 enchantment_alacrity_7: 3284,
 enchantment_captain_1: 3251,
 enchantment_captain_2: 3256,
 enchantment_captain_3: 3261,
 enchantment_captain_4: 3266,
 enchantment_captain_5: 3271,
 enchantment_captain_6: 3276,
 enchantment_captain_7: 3281,
 enchantment_distortion_1: 3253,
 enchantment_distortion_2: 3258,
 enchantment_distortion_3: 3263,
 enchantment_distortion_4: 3268,
 enchantment_distortion_5: 3273,
 enchantment_distortion_6: 3278,
 enchantment_distortion_7: 3283,
 enchantment_furor_1: 3252,
 enchantment_furor_2: 3257,
 enchantment_furor_3: 3262,
 enchantment_furor_4: 3267,
 enchantment_furor_5: 3272,
 enchantment_furor_6: 3277,
 enchantment_furor_7: 3282,
 enchantment_homeguard_1: 3250,
 enchantment_homeguard_2: 3255,
 enchantment_homeguard_3: 3260,
 enchantment_homeguard_4: 3270,
 enchantment_homeguard_5: 3275,
 enchantment_homeguard_6: 3280,
 entropy: 3184,
 essence_reaver: 3508,
 executioners_calling: 3123,
 explorers_ward: 2050,
 face_of_the_mountain: 3401,
 faerie_charm: 1004,
 farsight_orb_trinket: 3363,
 feral_flare: 3160,
 fiendish_codex: 3108,
 forbidden_idol: 3114,
 frost_queens_claim: 3092,
 frostfang: 3098,
 frozen_heart: 3110,
 frozen_mallet: 3022,
 giants_belt: 1011,
 glacial_shroud: 3024,
 greater_stealth_totem_trinket: 3361,
 greater_vision_totem_trinket: 3362,
 grezs_spectral_lantern: 3159,
 guardian_angel: 3026,
 guardians_horn: 2051,
 guinsoos_rageblade: 3124,
 haunting_guise: 3136,
 head_of_khazix_1: 3175,
 head_of_khazix_2: 3410,
 head_of_khazix_3: 3416,
 head_of_khazix_4: 3422,
 head_of_khazix_5: 3455,
 health_potion: 2003,
 hexdrinker: 3155,
 hextech_gunblade: 3146,
 hextech_revolver: 3145,
 hextech_sweeper: 3187,
 homeguard: 3265,
 hunters_machete: 1039,
 iceborn_gauntlet: 3025,
 ichor_of_illumination: 2048,
 ichor_of_rage: 2040,
 infinity_edge: 3031,
 ionian_boots_of_lucidity: 3158,
 kindlegem: 3067,
 last_whisper: 3035,
 liandrys_torment: 3151,
 lich_bane: 3100,
 locket_of_the_iron_solari: 3190,
 long_sword: 1036,
 lord_van_damms_pillager: 3104,
 madreds_razors: 3106,
 mana_potion: 2004,
 manamune: 3004,
 manamune_crystal_scar: 3008,
 maw_of_malmortius: 3156,
 mejais_soulstealer: 3041,
 mercurial_scimitar: 3139,
 mercurys_treads: 3111,
 mikaels_crucible: 3222,
 moonflair_spellblade: 3170,
 morellonomicon: 3165,
 muramana_1: 3042,
 muramana_2: 3043,
 nashors_tooth: 3115,
 needlessly_large_rod: 1058,
 negatron_cloak: 1057,
 ninja_tabi: 3047,
 nomads_medallion: 3096,
 null_magic_mantle: 1033,
 odyns_veil: 3180,
 ohmwrecker: 3056,
 oracles_extract: 2047,
 oracles_lens_trinket: 3364,
 orb_of_winter: 3112,
 overlords_bloodmail: 3084,
 phage: 3044,
 phantom_dancer: 3046,
 pickaxe: 1037,
 poro_snax: 2052,
 prospectors_blade: 1062,
 prospectors_ring: 1063,
 quicksilver_sash: 3140,
 quill_coat: 3205,
 rabadons_deathcap: 3089,
 randuins_omen: 3143,
 ravenous_hydra_melee_only: 3074,
 recurve_bow: 1043,
 rejuvenation_bead: 1006,
 relic_shield: 3302,
 rod_of_ages: 3027,
 rod_of_ages_crystal_scar: 3029,
 ruby_crystal: 1028,
 ruby_sightstone: 2045,
 runaans_hurricane_ranged_only: 3085,
 rylais_crystal_scepter: 3116,
 sanguine_blade: 3181,
 sapphire_crystal: 1027,
 scrying_orb_trinket: 3342,
 seekers_armguard: 3191,
 seraphs_embrace_1: 3040,
 seraphs_embrace_2: 3048,
 sheen: 3057,
 sightstone: 2049,
 sorcerers_shoes: 3020,
 soul_anchor_trinket: 3345,
 spectres_cowl: 3211,
 spellthiefs_edge: 3303,
 spirit_of_the_ancient_golem: 3207,
 spirit_of_the_elder_lizard: 3209,
 spirit_of_the_spectral_wraith: 3206,
 spirit_stone: 1080,
 spirit_visage: 3065,
 statikk_shiv: 3087,
 stealth_ward: 2044,
 stinger: 3101,
 sunfire_cape: 3068,
 sweeping_lens_trinket: 3341,
 sword_of_the_divine: 3131,
 sword_of_the_occult: 3141,
 talisman_of_ascension: 3069,
 targons_brace: 3097,
 tear_of_the_goddess: 3070,
 tear_of_the_goddess_crystal_scar: 3073,
 the_black_cleaver: 3071,
 the_bloodthirster: 3072,
 the_brutalizer: 3134,
 the_hex_core: 3200,
 the_lightbringer: 3185,
 thornmail: 3075,
 tiamat_melee_only: 3077,
 total_biscuit_of_rejuvenation_1: 2009,
 total_biscuit_of_rejuvenation_2: 2010,
 trinity_force: 3078,
 twin_shadows_1: 3023,
 twin_shadows_2: 3290,
 vampiric_scepter: 1053,
 vision_ward: 2043,
 void_staff: 3135,
 wardens_mail: 3082,
 warding_totem_trinket: 3340,
 warmogs_armor: 3083,
 wicked_hatchet: 3122,
 will_of_the_ancients: 3152,
 wits_end: 3091,
 wooglets_witchcap: 3090,
 wriggles_lantern: 3154,
 youmuus_ghostblade: 3142,
 zeal: 3086,
 zekes_herald: 3050,
 zephyr: 3172,
 zhonyas_hourglass: 3157,
}
CHAMPIONS =

how to generate list add :wukong by me client.static_data.champion_all.data.each do |key, value|

p "#{key}: #{value[:id]}"

end

{
 aatrox: 266,
 ahri: 103,
 akali: 84,
 alistar: 12,
 amumu: 32,
 anivia: 34,
 annie: 1,
 ashe: 22,
 blitzcrank: 53,
 brand: 63,
 braum: 201,
 caitlyn: 51,
 cassiopeia: 69,
 chogath: 31,
 corki: 42,
 darius: 122,
 diana: 131,
 dr_mundo: 36,
 draven: 119,
 elise: 60,
 evelynn: 28,
 ezreal: 81,
 fiddle_sticks: 9,
 fiora: 114,
 fizz: 105,
 galio: 3,
 gangplank: 41,
 garen: 86,
 gragas: 79,
 graves: 104,
 hecarim: 120,
 heimerdinger: 74,
 irelia: 39,
 janna: 40,
 jarvan_iv: 59,
 jax: 24,
 jayce: 126,
 jinx: 222,
 karma: 43,
 karthus: 30,
 kassadin: 38,
 katarina: 55,
 kayle: 10,
 kennen: 85,
 khazix: 121,
 kog_maw: 96,
 leblanc: 7,
 lee_sin: 64,
 leona: 89,
 lissandra: 127,
 lucian: 236,
 lulu: 117,
 lux: 99,
 malphite: 54,
 malzahar: 90,
 maokai: 57,
 master_yi: 11,
 miss_fortune: 21,
 monkey_king: 62, # wukong, riot use this name for wukong
 mordekaiser: 82,
 morgana: 25,
 nami: 267,
 nasus: 75,
 nautilus: 111,
 nidalee: 76,
 nocturne: 56,
 nunu: 20,
 olaf: 2,
 orianna: 61,
 pantheon: 80,
 poppy: 78,
 quinn: 133,
 rammus: 33,
 renekton: 58,
 rengar: 107,
 riven: 92,
 rumble: 68,
 ryze: 13,
 sejuani: 113,
 shaco: 35,
 shen: 98,
 shyvana: 102,
 singed: 27,
 sion: 14,
 sivir: 15,
 skarner: 72,
 sona: 37,
 soraka: 16,
 swain: 50,
 syndra: 134,
 talon: 91,
 taric: 44,
 teemo: 17,
 thresh: 412,
 tristana: 18,
 trundle: 48,
 tryndamere: 23,
 twisted_fate: 4,
 twitch: 29,
 udyr: 77,
 urgot: 6,
 varus: 110,
 vayne: 67,
 veigar: 45,
 velkoz: 161,
 vi: 254,
 viktor: 112,
 vladimir: 8,
 volibear: 106,
 warwick: 19,
 wukong: 62, # alias for monkey_king
 xerath: 101,
 xin_zhao: 5,
 yasuo: 157,
 yorick: 83,
 zac: 154,
 zed: 238,
 ziggs: 115,
 zilean: 26,
 zyra: 143,
}