Class: Dawupxlrgo::DawupxlrgoClient

Inherits:
Object
  • Object
show all
Defined in:
lib/dawupxlrgo/dawupxlrgo_client.rb

Overview

dawupxlrgo client class.

Instance Method Summary collapse

Constructor Details

#initialize(basic_auth_user_name: nil, basic_auth_password: nil) ⇒ DawupxlrgoClient

Initializer with authentication and configuration parameters.


22
23
24
25
26
27
# File 'lib/dawupxlrgo/dawupxlrgo_client.rb', line 22

def initialize(basic_auth_user_name: nil, basic_auth_password: nil)
  Configuration.basic_auth_user_name = basic_auth_user_name if
    basic_auth_user_name
  Configuration.basic_auth_password = basic_auth_password if
    basic_auth_password
end

Instance Method Details

#clientAPIController

Singleton access to client controller.

Returns:


11
12
13
# File 'lib/dawupxlrgo/dawupxlrgo_client.rb', line 11

def client
  APIController.instance
end

#configConfiguration

Returns the configuration class for easy access.

Returns:


17
18
19
# File 'lib/dawupxlrgo/dawupxlrgo_client.rb', line 17

def config
  Configuration
end