Class: Rito::StatsOld

Inherits:
Base
  • Object
show all
Defined in:
lib/rito/stats_old.rb

Class Method Summary collapse

Methods inherited from Base

all_regions, base_url, default_query, default_region, latest_version, parameterize

Class Method Details

.ranked_by_summoner_response(summoner_id:, region: default_region, version: latest_version, season: nil) ⇒ Object


14
15
16
# File 'lib/rito/stats_old.rb', line 14

def ranked_by_summoner_response(summoner_id:, region: default_region, version: latest_version, season: nil)
	response(summoner_id: summoner_id, region: region, version: version, type: "ranked", season: season)
end

.ranked_by_summoner_url(summoner_id:, region: default_region, version: latest_version, season: nil) ⇒ Object


6
7
8
# File 'lib/rito/stats_old.rb', line 6

def ranked_by_summoner_url(summoner_id:, region: default_region, version: latest_version, season: nil)
	url(summoner_id: summoner_id, region: region, version: version, type: "ranked", season: season)
end

.regions(version: version) ⇒ Object


36
37
38
39
40
41
# File 'lib/rito/stats_old.rb', line 36

def regions(version: version)
	case version
	when '1.3'
		all_regions
	end
end

.summary_by_summoner_response(summoner_id:, region: default_region, version: latest_version, season: nil) ⇒ Object


18
19
20
# File 'lib/rito/stats_old.rb', line 18

def summary_by_summoner_response(summoner_id:, region: default_region, version: latest_version, season: nil)
	response(summoner_id: summoner_id, region: region, version: version, type: "summary", season: season)
end

.summary_by_summoner_url(summoner_id:, region: default_region, version: latest_version, season: nil) ⇒ Object


10
11
12
# File 'lib/rito/stats_old.rb', line 10

def summary_by_summoner_url(summoner_id:, region: default_region, version: latest_version, season: nil)
	url(summoner_id: summoner_id, region: region, version: version, type: "summary", season: season)
end

.versionsObject


32
33
34
# File 'lib/rito/stats_old.rb', line 32

def versions
	['1.3']
end