Class: Muxi::ServerConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/muxi/server_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, key_id:, secret_key:, max_retries: 0, timeout: 30, debug: false, logger: nil, _app: nil) ⇒ ServerConfig

Returns a new instance of ServerConfig.



7
8
9
10
11
12
13
14
15
16
# File 'lib/muxi/server_client.rb', line 7

def initialize(url:, key_id:, secret_key:, max_retries: 0, timeout: 30, debug: false, logger: nil, _app: nil)
  @url = url
  @key_id = key_id
  @secret_key = secret_key
  @max_retries = max_retries
  @timeout = timeout
  @debug = debug
  @logger = logger
  @_app = _app
end

Instance Attribute Details

#_appObject

Returns the value of attribute _app.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def _app
  @_app
end

#debugObject

Returns the value of attribute debug.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def debug
  @debug
end

#key_idObject

Returns the value of attribute key_id.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def key_id
  @key_id
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def logger
  @logger
end

#max_retriesObject

Returns the value of attribute max_retries.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def max_retries
  @max_retries
end

#secret_keyObject

Returns the value of attribute secret_key.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def secret_key
  @secret_key
end

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/muxi/server_client.rb', line 5

def url
  @url
end