Class: Batesterwithcustomparamdemov1::Batesterwithcustomparamdemov1Client

Inherits:
Object
  • Object
show all
Defined in:
lib/batesterwithcustomparamdemov1/batesterwithcustomparamdemov1_client.rb

Overview

batesterwithcustomparamdemov1 client class.

Instance Method Summary collapse

Constructor Details

#initialize(username: 'farhan', password: 'apimatic') ⇒ Batesterwithcustomparamdemov1Client

Initializer with authentication and configuration parameters.



22
23
24
25
26
27
# File 'lib/batesterwithcustomparamdemov1/batesterwithcustomparamdemov1_client.rb', line 22

def initialize(username: 'farhan', password: 'apimatic')
  Configuration.username = username if
    username
  Configuration.password = password if
    password
end

Instance Method Details

#clientAPIController

Singleton access to client controller.

Returns:



11
12
13
# File 'lib/batesterwithcustomparamdemov1/batesterwithcustomparamdemov1_client.rb', line 11

def client
  APIController.instance
end

#configConfiguration

Returns the configuration class for easy access.

Returns:



17
18
19
# File 'lib/batesterwithcustomparamdemov1/batesterwithcustomparamdemov1_client.rb', line 17

def config
  Configuration
end