Class: RBattlenet::Sc2::League

Inherits:
Endpoints::Base show all
Defined in:
lib/rbattlenet/endpoints/sc2/league.rb

Constant Summary

Constants inherited from Endpoints::Base

Endpoints::Base::SUPPORTED_FIELDS

Class Method Summary collapse

Methods inherited from Endpoints::Base

all, find

Class Method Details

.path(league) ⇒ Object



4
5
6
# File 'lib/rbattlenet/endpoints/sc2/league.rb', line 4

def self.path(league)
  RBattlenet.uri("data/sc2/league/#{league[:season]}/#{league[:queue]}/#{league[:team_type]}/#{league[:id]}?")
end