Class: RBattlenet::Sc2::Legacy::Profile

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

Constant Summary collapse

SUPPORTED_FIELDS =
[:itself, :matches, :ladders]

Class Method Summary collapse

Methods inherited from Endpoints::Base

all, find

Class Method Details

.laddersObject



15
16
17
# File 'lib/rbattlenet/endpoints/sc2/legacy/profile.rb', line 15

def self.ladders
  RBattlenet::Sc2::Legacy::ProfileLadders
end

.matchesObject



11
12
13
# File 'lib/rbattlenet/endpoints/sc2/legacy/profile.rb', line 11

def self.matches
  RBattlenet::Sc2::Legacy::ProfileMatchHistory
end

.path(profile) ⇒ Object



7
8
9
# File 'lib/rbattlenet/endpoints/sc2/legacy/profile.rb', line 7

def self.path(profile)
  RBattlenet.uri("sc2/legacy/profile/#{profile[:region_id]}/#{profile[:realm_id]}/#{profile[:id]}?")
end