Class: BaTesterWithCustomParameters::Client
- Inherits:
-
Object
- Object
- BaTesterWithCustomParameters::Client
- Defined in:
- lib/ba_tester_with_custom_parameters/client.rb
Overview
ba_tester_with_custom_parameters client class.
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#client ⇒ APIController
Access to client controller.
-
#initialize(timeout: 60, max_retries: 0, retry_interval: 1, backoff_factor: 1, environment: Environment::TESTING, port: '80', suites: SuiteCodeEnum::HEARTS, username: 'farhan', password: 'apimatic', config: nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(timeout: 60, max_retries: 0, retry_interval: 1, backoff_factor: 1, environment: Environment::TESTING, port: '80', suites: SuiteCodeEnum::HEARTS, username: 'farhan', password: 'apimatic', config: nil) ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/ba_tester_with_custom_parameters/client.rb', line 17 def initialize(timeout: 60, max_retries: 0, retry_interval: 1, backoff_factor: 1, environment: Environment::TESTING, port: '80', suites: SuiteCodeEnum::HEARTS, username: 'farhan', password: 'apimatic', config: nil) @config = if config.nil? Configuration.new(timeout: timeout, max_retries: max_retries, retry_interval: retry_interval, backoff_factor: backoff_factor, environment: environment, port: port, suites: suites, username: username, password: password) else config end end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/ba_tester_with_custom_parameters/client.rb', line 9 def config @config end |
Instance Method Details
#client ⇒ APIController
Access to client controller.
13 14 15 |
# File 'lib/ba_tester_with_custom_parameters/client.rb', line 13 def client @client ||= APIController.new config end |