Module: DopisOnlineClient
- Defined in:
- lib/dopis_online_client.rb,
lib/dopis_online_client/request.rb,
lib/dopis_online_client/version.rb,
lib/dopis_online_client/response.rb,
lib/dopis_online_client/status_request.rb
Defined Under Namespace
Classes: Request, Response, StatusRequest
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
-
.auth(username, password) ⇒ Object
Public: Sets authentication credentials.
-
.base_uri(path = nil) ⇒ Object
Public: Sets the service uri.
-
.password ⇒ Object
Public: Gets the current password.
-
.username ⇒ Object
Public: Gets the current username.
Class Method Details
.auth(username, password) ⇒ Object
Public: Sets authentication credentials
username - string with username password - password
22 23 24 25 |
# File 'lib/dopis_online_client.rb', line 22 def self.auth(username, password) @username = username @password = password end |
.base_uri(path = nil) ⇒ Object
Public: Sets the service uri
uri - string with base uri of the service
13 14 15 |
# File 'lib/dopis_online_client.rb', line 13 def self.base_uri(path = nil) path ? @base_uri = path : @base_uri end |
.password ⇒ Object
Public: Gets the current password
Returns string with the password
39 40 41 |
# File 'lib/dopis_online_client.rb', line 39 def self.password @password end |
.username ⇒ Object
Public: Gets the current username
Returns string with the username
31 32 33 |
# File 'lib/dopis_online_client.rb', line 31 def self.username @username end |