Class: Muxi::ServerConfig
- Inherits:
-
Object
- Object
- Muxi::ServerConfig
- Defined in:
- lib/muxi/server_client.rb
Instance Attribute Summary collapse
-
#_app ⇒ Object
Returns the value of attribute _app.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#key_id ⇒ Object
Returns the value of attribute key_id.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, key_id:, secret_key:, max_retries: 0, timeout: 30, debug: false, logger: nil, _app: nil) ⇒ ServerConfig
constructor
A new instance of ServerConfig.
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
#_app ⇒ Object
Returns the value of attribute _app.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def _app @_app end |
#debug ⇒ Object
Returns the value of attribute debug.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def debug @debug end |
#key_id ⇒ Object
Returns the value of attribute key_id.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def key_id @key_id end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def logger @logger end |
#max_retries ⇒ Object
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_key ⇒ Object
Returns the value of attribute secret_key.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def secret_key @secret_key end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/muxi/server_client.rb', line 5 def url @url end |