Class: HighScores::EOC::SeasonalEvents

Inherits:
String
  • Object
show all
Defined in:
lib/rs_api-ruby/highscores.rb

Instance Method Summary collapse

Instance Method Details

#getEvents(status) ⇒ Object



6
7
8
9
# File 'lib/rs_api-ruby/highscores.rb', line 6

def getEvents(status)
  jsonRequest = open(Utils.baseURI + 'temp-hiscores/getRankings.json?player=DisplayName&status=' + status.to_s).read
  return JSON.parse(jsonRequest)
end

#getPlayerData(displayName, status) ⇒ Object



11
12
13
14
# File 'lib/rs_api-ruby/highscores.rb', line 11

def getPlayerData(displayName, status)
  jsonRequest = open(Utils.baseURI + 'temp-hiscores/getRankings.json?player=' + displayName.to_s + '&status=' + status.to_s).read
  return JSON.parse(jsonRequest)
end