class RiotLolApi::Model::Mastery
Public Instance Methods
infos(data = {}, locale = 'fr_FR')
click to toggle source
# File lib/riot_lol_api/models/masteries.rb, line 6 def infos(data = {}, locale = 'fr_FR') data.merge!(locale: locale) response = Client.get(url: "static-data/euw/v1.2/mastery/#{@id}", domaine: 'global', data: data) return nil if response.nil? RiotLolApi::Model::Mastery.new(response.lol_symbolize.merge(client: @client)) end