module HotsApi
Constants
- VERSION
Public Class Methods
fetcher()
click to toggle source
# File lib/hots_api.rb, line 23 def self.fetcher @fetcher ||= Fetcher.new end
get(path, params: {})
click to toggle source
# File lib/hots_api.rb, line 27 def self.get(path, params: {}) fetcher.get(path, params: params) end
heroes()
click to toggle source
# File lib/hots_api.rb, line 39 def self.heroes Repositories::HeroRepository.new end
maps()
click to toggle source
# File lib/hots_api.rb, line 43 def self.maps Repositories::MapRepository.new end
post(path, body: nil, file: nil)
click to toggle source
# File lib/hots_api.rb, line 31 def self.post(path, body: nil, file: nil) fetcher.post(path, body: body, file: file) end
replays()
click to toggle source
# File lib/hots_api.rb, line 35 def self.replays Repositories::ReplayRepository.new end