zas-client 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zas/client.rb +4 -2
- metadata +1 -1
data/lib/zas/client.rb
CHANGED
@@ -6,6 +6,8 @@ require 'hashie'
|
|
6
6
|
module Zas
|
7
7
|
class Client
|
8
8
|
require 'zas/client_configuration'
|
9
|
+
require 'zas/credentials'
|
10
|
+
require 'zas/http_basic_credentials'
|
9
11
|
|
10
12
|
# Initialize the client with the given configuration.
|
11
13
|
#
|
@@ -19,7 +21,7 @@ module Zas
|
|
19
21
|
at_exit { disconnect }
|
20
22
|
end
|
21
23
|
|
22
|
-
# Authenticate the given credentials.
|
24
|
+
# Public: Authenticate the given credentials.
|
23
25
|
#
|
24
26
|
# credentials - The credentials
|
25
27
|
#
|
@@ -33,7 +35,7 @@ module Zas
|
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
36
|
-
# Disconnect the socket.
|
38
|
+
# Public: Disconnect the socket.
|
37
39
|
def disconnect
|
38
40
|
socket.close if socket
|
39
41
|
@socket = nil
|