Class: Ratis::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ratis/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



5
6
7
# File 'lib/ratis/config.rb', line 5

def endpoint
  @endpoint
end

#logObject

Returns the value of attribute log.



5
6
7
# File 'lib/ratis/config.rb', line 5

def log
  @log
end

#log_levelObject

Returns the value of attribute log_level.



5
6
7
# File 'lib/ratis/config.rb', line 5

def log_level
  @log_level
end

#namespaceObject

Returns the value of attribute namespace.



5
6
7
# File 'lib/ratis/config.rb', line 5

def namespace
  @namespace
end

#proxyObject

Returns the value of attribute proxy.



5
6
7
# File 'lib/ratis/config.rb', line 5

def proxy
  @proxy
end

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/ratis/config.rb', line 5

def timeout
  @timeout
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/ratis/config.rb', line 7

def valid?
  return false if endpoint.nil? or namespace.nil?
  return false if endpoint.empty? or namespace.empty?
  true
end