Method: ZgenClient#initialize
- Defined in:
- lib/zgen_client.rb
#initialize(api_host:, api_port:, user_email:, user_password:, user_customer_name:, proxy_host: nil, proxy_port: nil, timeout: 30, is_https: false) ⇒ ZgenClient
Returns a new instance of ZgenClient.
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/zgen_client.rb', line 24 def initialize(api_host:, api_port:, user_email:, user_password:, user_customer_name:, proxy_host: nil, proxy_port: nil, timeout: 30, is_https: false) @api_host = api_host @api_port = api_port @user_email = user_email @user_password = user_password @user_customer_name = user_customer_name @proxy_host = proxy_host @proxy_port = proxy_port @timeout = timeout @is_https = is_https @token = nil @user_id = nil end |