wingyu/rbattlenet

View on GitHub
lib/rbattlenet/endpoints/sc2/league.rb

Summary

Maintainability
A
25 mins
Test Coverage
module RBattlenet
  module Sc2
    class League < RBattlenet::Endpoints::Base
      def self.path(league)
        RBattlenet.uri("data/sc2/league/#{league[:season]}/#{league[:queue]}/#{league[:team_type]}/#{league[:id]}?")
      end
    end
  end
end