Class: Dotinha::MatchDetails
- Inherits:
-
Object
- Object
- Dotinha::MatchDetails
- Defined in:
- lib/dotinha/match_details.rb
Class Method Summary collapse
-
.get_data(params = {}) ⇒ Object
Get match details from Dota2 API Possible params at: wiki.teamfortress.com/wiki/WebAPI/GetMatchHistory.
Class Method Details
.get_data(params = {}) ⇒ Object
Get match details from Dota2 API Possible params at: wiki.teamfortress.com/wiki/WebAPI/GetMatchHistory
9 10 11 12 13 |
# File 'lib/dotinha/match_details.rb', line 9 def self.get_data(params={}) uri = get_uri(params) match_history = open(uri){|f| f.read} JSON.parse(match_history)["result"] end |