Class: Muxi::FormationConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(formation_id: nil, url: nil, server_url: nil, base_url: nil, admin_key: nil, client_key: nil, max_retries: 0, timeout: 30, debug: false, logger: nil, mode: "live", _app: nil) ⇒ FormationConfig

Returns a new instance of FormationConfig.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/muxi/formation_client.rb', line 32

def initialize(
  formation_id: nil, url: nil, server_url: nil, base_url: nil,
  admin_key: nil, client_key: nil, max_retries: 0, timeout: 30,
  debug: false, logger: nil, mode: "live", _app: nil
)
  @formation_id = formation_id
  @url = url
  @server_url = server_url
  @base_url = base_url
  @admin_key = admin_key
  @client_key = client_key
  @max_retries = max_retries
  @timeout = timeout
  @debug = debug
  @logger = logger
  @mode = mode
  @_app = _app
end

Instance Attribute Details

#_appObject

Returns the value of attribute _app.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def _app
  @_app
end

#admin_keyObject

Returns the value of attribute admin_key.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def admin_key
  @admin_key
end

#base_urlObject

Returns the value of attribute base_url.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def base_url
  @base_url
end

#client_keyObject

Returns the value of attribute client_key.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def client_key
  @client_key
end

#debugObject

Returns the value of attribute debug.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def debug
  @debug
end

#formation_idObject

Returns the value of attribute formation_id.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def formation_id
  @formation_id
end

#loggerObject

Returns the value of attribute logger.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def logger
  @logger
end

#max_retriesObject

Returns the value of attribute max_retries.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def max_retries
  @max_retries
end

#modeObject

Returns the value of attribute mode.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def mode
  @mode
end

#server_urlObject

Returns the value of attribute server_url.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def server_url
  @server_url
end

#timeoutObject

Returns the value of attribute timeout.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



29
30
31
# File 'lib/muxi/formation_client.rb', line 29

def url
  @url
end