class RitoPlz::Client
Public Class Methods
new(params = {})
click to toggle source
# File lib/RitoPlz/client.rb, line 18 def initialize(params = {}) @region = params[:region] || RitoPlz.configuration.default_region end
Public Instance Methods
champion()
click to toggle source
# File lib/RitoPlz/client.rb, line 22 def champion RitoPlz::API::Champion.new(@region) end
champion_mastery(player_id)
click to toggle source
# File lib/RitoPlz/client.rb, line 26 def champion_mastery(player_id) RitoPlz::API::ChampionMastery.new(@region, player_id) end
current_game()
click to toggle source
# File lib/RitoPlz/client.rb, line 30 def current_game RitoPlz::API::CurrentGame.new(@region) end
featured_games()
click to toggle source
# File lib/RitoPlz/client.rb, line 34 def featured_games RitoPlz::API::FeaturedGames.new(@region) end
game()
click to toggle source
# File lib/RitoPlz/client.rb, line 38 def game RitoPlz::API::Game.new(@region) end
league()
click to toggle source
# File lib/RitoPlz/client.rb, line 42 def league RitoPlz::API::League.new(@region) end
match()
click to toggle source
# File lib/RitoPlz/client.rb, line 54 def match RitoPlz::API::Match.new(@region) end
match_list()
click to toggle source
# File lib/RitoPlz/client.rb, line 58 def match_list RitoPlz::API::MatchList.new(@region) end
static_data()
click to toggle source
# File lib/RitoPlz/client.rb, line 46 def static_data RitoPlz::API::StaticData.new(@region) end
stats(player_id)
click to toggle source
# File lib/RitoPlz/client.rb, line 62 def stats(player_id) RitoPlz::API::Stats.new(@region, player_id) end
status()
click to toggle source
# File lib/RitoPlz/client.rb, line 50 def status RitoPlz::API::Status.new(@region) end
summoner()
click to toggle source
# File lib/RitoPlz/client.rb, line 66 def summoner RitoPlz::API::Summoner.new(@region) end
team()
click to toggle source
# File lib/RitoPlz/client.rb, line 70 def team RitoPlz::API::Team.new(@region) end
tournament()
click to toggle source
# File lib/RitoPlz/client.rb, line 74 def tournament RitoPlz::API::Tournament.new(@region) end