Class: Battlenet::SC2Client
- Inherits:
-
Client
- Object
- Client
- Battlenet::SC2Client
show all
- Includes:
- SC2
- Defined in:
- lib/battlenet/api/sc2_client.rb
Instance Method Summary
collapse
Methods inherited from Client
#base_uri, #domain, #endpoint, #get, #make_request
Constructor Details
#initialize(options = {}) ⇒ SC2Client
Returns a new instance of SC2Client.
13
14
15
16
17
18
|
# File 'lib/battlenet/api/sc2_client.rb', line 13
def initialize(options = {})
client_settings = { :endpoint => '/sc2' }
client_settings = client_settings.merge(options)
super(client_settings)
end
|
Instance Method Details
#data(options = {}) ⇒ Object
20
21
22
|
# File 'lib/battlenet/api/sc2_client.rb', line 20
def data(options = {})
merge_options_and_return_obj(options, Battlenet::SC2::Data)
end
|
#ladder(options = {}) ⇒ Object
24
25
26
|
# File 'lib/battlenet/api/sc2_client.rb', line 24
def ladder(options = {})
merge_options_and_return_obj(options, Battlenet::SC2::Ladder)
end
|
#profile(options = {}) ⇒ Object
28
29
30
|
# File 'lib/battlenet/api/sc2_client.rb', line 28
def profile(options = {})
merge_options_and_return_obj(options, Battlenet::SC2::Profile)
end
|