lib/bandwidth/voice_lib/voice/client.rb in bandwidth-sdk-0.1.0 vs lib/bandwidth/voice_lib/voice/client.rb in bandwidth-sdk-1.0.0.pre

- old
+ new

@@ -1,36 +1,40 @@ -# bandwidth -# -# This file was automatically generated by APIMATIC v2.0 -# ( https://apimatic.io ). - -module Bandwidth - module Voice - # bandwidth client class. - class Client - attr_reader :config - - # Access to calls controller. - # @return [CallsController] Returns the controller instance. - def calls - @calls ||= CallsController.new config - end - - def initialize(timeout: 60, max_retries: 0, retry_interval: 1, - backoff_factor: 1, environment: Environment::PRODUCTION, - voice_basic_auth_user_name: 'TODO: Replace', - voice_basic_auth_password: 'TODO: Replace', config: nil) - @config = if config.nil? - Configuration.new(timeout: timeout, - max_retries: max_retries, - retry_interval: retry_interval, - backoff_factor: backoff_factor, - environment: environment, - voice_basic_auth_user_name: voice_basic_auth_user_name, - voice_basic_auth_password: voice_basic_auth_password) - else - config - end - end - end -end -end +# bandwidth +# +# This file was automatically generated by APIMATIC v2.0 +# ( https://apimatic.io ). + +module Bandwidth + module Voice + # bandwidth client class. + class Client + attr_reader :config + + # Access to client controller. + # @return [APIController] Returns the controller instance. + def client + @client ||= APIController.new config + end + + def initialize(timeout: 0, max_retries: 0, retry_interval: 1, + backoff_factor: 1, environment: Environment::PRODUCTION, + messaging_basic_auth_user_name: 'TODO: Replace', + messaging_basic_auth_password: 'TODO: Replace', + voice_basic_auth_user_name: 'TODO: Replace', + voice_basic_auth_password: 'TODO: Replace', config: nil) + @config = if config.nil? + Configuration.new(timeout: timeout, + max_retries: max_retries, + retry_interval: retry_interval, + backoff_factor: backoff_factor, + environment: environment, + messaging_basic_auth_user_name: messaging_basic_auth_user_name, + messaging_basic_auth_password: messaging_basic_auth_password, + voice_basic_auth_user_name: voice_basic_auth_user_name, + voice_basic_auth_password: voice_basic_auth_password) + else + config + end + end + end +end +end