Module: AllPlayers
- Extended by:
- Configuration
- Defined in:
- lib/allplayers.rb,
lib/allplayers/api.rb,
lib/allplayers/error.rb,
lib/allplayers/client.rb,
lib/allplayers/request.rb,
lib/allplayers/rate_limit.rb,
lib/allplayers/client/forms.rb,
lib/allplayers/client/users.rb,
lib/allplayers/client/events.rb,
lib/allplayers/client/groups.rb,
lib/allplayers/configuration.rb,
lib/allplayers/authentication.rb,
lib/allplayers/error/decode_error.rb,
lib/allplayers/error/restclient_error.rb
Defined Under Namespace
Modules: Authentication, Configuration, Events, Forms, Groups, Request, Users
Classes: API, Client, Error, RateLimit
Class Method Summary
collapse
configure
Class Method Details
.client(server = 'https://www.allplayers.com', auth = 'basic', access_token = nil) ⇒ Object
14
15
16
17
|
# File 'lib/allplayers.rb', line 14
def client(server = 'https://www.allplayers.com', auth = 'basic', access_token = nil)
@client = AllPlayers::Client.new(server, auth, access_token) unless defined?(@client)
@client
end
|
.new(server = 'https://www.allplayers.com', auth = 'basic', access_token = nil) ⇒ Object
10
11
12
|
# File 'lib/allplayers.rb', line 10
def new(server = 'https://www.allplayers.com', auth = 'basic', access_token = nil)
@client = AllPlayers::Client.new(server, auth, access_token)
end
|