Sha256: 14d62bafa7e0c5a50afc2b574b470d4ba4f7a17acf73377a999b55f83cbf8a9f

Contents?: true

Size: 482 Bytes

Versions: 4

Compression:

Stored size: 482 Bytes

Contents

module Lol
  # Bindings for the Masteries API.
  #
  # See: https://developer.riotgames.com/api-methods/#masteries-v3
  class MasteriesRequest < Request
    # Get mastery pages for a given summoner ID
    # @param [Integer] summoner_id Summoner ID
    # @return [Array<DynamicModel>] Mastery pages
    def by_summoner_id summoner_id
      result = perform_request api_url "masteries/by-summoner/#{summoner_id}"
      result["pages"].map { |p| DynamicModel.new p }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-lol-1.2.0 lib/lol/masteries_request.rb
ruby-lol-1.1.2 lib/lol/masteries_request.rb
ruby-lol-1.1.1 lib/lol/masteries_request.rb
ruby-lol-1.0.0 lib/lol/masteries_request.rb