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

#appidObject

Returns the value of attribute appid.



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

def appid
  @appid
end

#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
# File 'lib/ratis/config.rb', line 7

def valid?
  !(endpoint.nil? || endpoint.empty? || namespace.nil? || namespace.empty? || appid.nil? || appid.empty?)
end