module Taric::Operation::LolStaticData
Constants
- BASE_STATIC_URL
- CHAMP_DATA_OPTIONS
- ITEM_DATA_OPTIONS
- LOCALE
locales mapped to languages
- LOCALE_KEYS
- MASTERY_DATA_OPTIONS
- SPELL_DATA_OPTIONS
- STATIC_CHAMPION
- STATIC_CHAMPIONS
- STATIC_ITEM
- STATIC_ITEMS
- STATIC_LANGUAGES
- STATIC_LANGUAGE_STRINGS
- STATIC_MAP
- STATIC_MASTERIES
- STATIC_MASTERY
- STATIC_PROFILE_ICONS
- STATIC_REALM
- STATIC_RUNE
- STATIC_RUNES
- STATIC_SUMMONER_SPELL
- STATIC_SUMMONER_SPELLS
- STATIC_VERSIONS
Public Instance Methods
Static data for champion by id
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getChampionById @param id [Fixnum] id of champion @param champ_data [String] optional, filter from [CHAMP_DATA_OPTIONS] @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil @param version [String] optional, enforces version of static data, or latest if nil
@return [Hash] of static champion data
@example
champions = client.static_champions(id: 44)
# File lib/taric/operation/lol_static_data.rb, line 168 def static_champion(id:, champ_data: nil, locale: nil, version: nil) response_for STATIC_CHAMPION, {id: id, champData: champ_data, locale: locale, version: version} end
Static data for champions
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getChampionList @param data_by_id [Boolean] optional, if true, champion data keyed to IDs @param champ_list_data [String] optional, filter from [CHAMP_DATA_OPTIONS] @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil @param version [String] optional, enforces version of static data, or latest if nil
@return [Hash] of static champion data
@example
# Defaults champions = client.static_champions # Mapped by IDs champions = client.static_champions(data_by_id: true)
# File lib/taric/operation/lol_static_data.rb, line 152 def static_champions(data_by_id: nil, locale: nil, champ_list_data: nil, version: nil) response_for STATIC_CHAMPIONS, {locale: locale, dataById: data_by_id, champListData: champ_list_data, version: version} end
Static data for item by id
@see developer.riotgames.com/api/methods#!/968/3319 @param id [Fixnum] id of item @param item_data_option [String] optional, filter from [ITEM_DATA_OPTIONS] @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil @param version [String] optional, enforces version of static data, or latest if nil
@return [Hash] of static item data for id
@example
item = client.static_item(id: 2049)
# File lib/taric/operation/lol_static_data.rb, line 200 def static_item(id:, item_data: nil, locale: nil, version: nil) response_for STATIC_ITEM, {id: id, itemData: item_data, locale: locale, version: version} end
Static data for items
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getItemList @param item_list_data [String] optional, filter from [ITEM_DATA_OPTIONS] @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil @param version [String] optional, enforces version of static data, or latest if nil
@return [Hash] of static item data
@example
# Defaults champions = client.static_items
# File lib/taric/operation/lol_static_data.rb, line 184 def static_items(item_list_data: nil, locale: nil, version: nil) response_for STATIC_ITEMS, {itemListData: item_list_data, locale: locale, version: version} end
Returns [Hash] of language string data.
@see developer.riotgames.com/api/methods#!/968/3316 @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil @param version [String] optional, enforces version of static data, or latest if nil @return [Hash] of language string data @example
language_strings = client.static_language_strings
# File lib/taric/operation/lol_static_data.rb, line 212 def static_language_strings(locale: nil, version: nil) response_for STATIC_LANGUAGE_STRINGS, {locale: locale, version: version} end
Returns [Array] of languages.
@see developer.riotgames.com/api/methods#!/968/3324 @return [Array] of languages @example
languages = client.static_languages
# File lib/taric/operation/lol_static_data.rb, line 222 def static_languages response_for STATIC_LANGUAGES end
Maps available. @see developer.riotgames.com/api/methods#!/968/3328 @param locale [String] filter by locale @param version [String] patch version @return [Hash] of maps available.
# File lib/taric/operation/lol_static_data.rb, line 231 def static_maps(locale: nil, version: nil) response_for STATIC_MAP, {locale: locale, version: version} end
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getMasteryList
# File lib/taric/operation/lol_static_data.rb, line 236 def static_masteries(mastery_list_data: nil, locale: nil, version: nil) response_for STATIC_MASTERIES, {masteryListData: mastery_list_data, locale: locale, version: version} end
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getMasteryById
# File lib/taric/operation/lol_static_data.rb, line 241 def static_mastery(id:, mastery_data: nil, locale: nil, version: nil) response_for STATIC_MASTERY, {id: id, masteryData: mastery_data, locale:locale, version: version} end
@see developer.riotgames.com/api/methods#!/968/3325
# File lib/taric/operation/lol_static_data.rb, line 246 def static_profile_icons(locale: nil, version: nil) response_for STATIC_PROFILE_ICONS, {locale: locale, version: version} end
@see developer.riotgames.com/api/methods#!/968/3325
# File lib/taric/operation/lol_static_data.rb, line 251 def static_realms response_for STATIC_REALM end
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getRuneById
# File lib/taric/operation/lol_static_data.rb, line 261 def static_rune(id:, rune_data: nil, locale: nil, version: nil) response_for STATIC_RUNE, {id: id, runeData: rune_data, locale: locale, version: version} end
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getRuneList
# File lib/taric/operation/lol_static_data.rb, line 256 def static_runes(rune_list_data: nil, locale: nil, version: nil) response_for STATIC_RUNES, {runeListData: rune_list_data, locale: locale, version: version} end
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getSummonerSpellById
# File lib/taric/operation/lol_static_data.rb, line 271 def static_summoner_spell(id:, spell_data: nil, locale: nil, version: nil) response_for STATIC_SUMMONER_SPELL, {id: id, spellData: spell_data, locale: locale, version: version} end
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getSummonerSpellList
# File lib/taric/operation/lol_static_data.rb, line 266 def static_summoner_spells(spell_list_data: nil, locale: nil, version: nil, data_by_id: nil) response_for STATIC_SUMMONER_SPELLS, {spellListData: spell_list_data, locale: locale, version: version, dataById: data_by_id} end
Returns [Array] of static data version numbers.
@see developer.riotgames.com/api-methods/#static-data-v3/GET_getVersions @return [Array] of version numbers @example
versions = client.static_versions
# File lib/taric/operation/lol_static_data.rb, line 281 def static_versions response_for STATIC_VERSIONS end