class RitoPlz::API::MatchList
Public Class Methods
new(region)
click to toggle source
# File lib/RitoPlz/API/match_list.rb, line 7 def initialize(region) @region = region end
Public Instance Methods
by_player_id(player_id, query_params = {})
click to toggle source
# File lib/RitoPlz/API/match_list.rb, line 11 def by_player_id(player_id, query_params = {}) request = Request.new(@region, api_path("/#{player_id}")) request.get(query_params) end
Protected Instance Methods
api_path(additional_path = "")
click to toggle source
# File lib/RitoPlz/API/match_list.rb, line 18 def api_path(additional_path = "") "/api/lol/#{@region}/v2.2/matchlist/by-summoner" + additional_path end