Module: HotsApi
- Defined in:
- lib/hots_api.rb,
lib/hots_api/fetcher.rb,
lib/hots_api/version.rb,
lib/hots_api/models/model.rb,
lib/hots_api/models/player.rb,
lib/hots_api/models/replay.rb,
lib/hots_api/models/map_translation.rb,
lib/hots_api/models/uploaded_replay.rb,
lib/hots_api/models/hero_translation.rb,
lib/hots_api/repositories/repository.rb,
lib/hots_api/repositories/replay_repository.rb,
lib/hots_api/repositories/map_translation_repository.rb,
lib/hots_api/repositories/hero_translation_repository.rb
Defined Under Namespace
Modules: Models, Repositories
Classes: Fetcher
Constant Summary
collapse
- VERSION =
'0.2.0'
Class Method Summary
collapse
Class Method Details
.fetcher ⇒ Object
19
20
21
|
# File 'lib/hots_api.rb', line 19
def self.fetcher
@fetcher ||= Fetcher.new
end
|
.get(path, params: {}) ⇒ Object
23
24
25
|
# File 'lib/hots_api.rb', line 23
def self.get(path, params: {})
fetcher.get(path, params: params)
end
|
.hero_translations ⇒ Object
.map_translations ⇒ Object
.post(path, body: nil, file: nil) ⇒ Object
27
28
29
|
# File 'lib/hots_api.rb', line 27
def self.post(path, body: nil, file: nil)
fetcher.post(path, body: body, file: file)
end
|