Class: RiotLolApi::Model::Mastery
- Inherits:
-
Object
- Object
- RiotLolApi::Model::Mastery
- Includes:
- Concern::Init
- Defined in:
- lib/riot_lol_api/models/masteries.rb
Instance Method Summary collapse
Methods included from Concern::Init
Instance Method Details
#infos(data = {}, locale = 'fr_FR') ⇒ Object
6 7 8 9 10 11 |
# 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 |