Class: Ratis::Config
- Inherits:
-
Object
- Object
- Ratis::Config
- Defined in:
- lib/ratis/config.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#log ⇒ Object
Returns the value of attribute log.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/ratis/config.rb', line 5 def endpoint @endpoint end |
#log ⇒ Object
Returns the value of attribute log.
5 6 7 |
# File 'lib/ratis/config.rb', line 5 def log @log end |
#log_level ⇒ Object
Returns the value of attribute log_level.
5 6 7 |
# File 'lib/ratis/config.rb', line 5 def log_level @log_level end |
#namespace ⇒ Object
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/ratis/config.rb', line 5 def namespace @namespace end |
#proxy ⇒ Object
Returns the value of attribute proxy.
5 6 7 |
# File 'lib/ratis/config.rb', line 5 def proxy @proxy end |
#timeout ⇒ Object
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
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 |