Class: RBattlenet::Sc2::Legacy::Profile
- Inherits:
-
Endpoints::Base
- Object
- Endpoints::Base
- RBattlenet::Sc2::Legacy::Profile
- 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
Class Method Details
.ladders ⇒ Object
15 16 17 |
# File 'lib/rbattlenet/endpoints/sc2/legacy/profile.rb', line 15 def self.ladders RBattlenet::Sc2::Legacy::ProfileLadders end |
.matches ⇒ Object
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 |