wingyu/rbattlenet

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

Summary

Maintainability
A
25 mins
Test Coverage
module RBattlenet
  module Sc2
    class ProfileLadder < RBattlenet::Endpoints::Base
      def self.path(ladder)
        RBattlenet.uri(
          "sc2/profile/#{ladder[:region_id]}/#{ladder[:realm_id]}/#{ladder[:profile_id]}/ladder/#{ladder[:id]}?"
        )
      end
    end
  end
end