Class: Ratis::Config
- Inherits:
-
Object
- Object
- Ratis::Config
- Defined in:
- lib/ratis/config.rb
Instance Attribute Summary collapse
-
#appid ⇒ Object
Returns the value of attribute appid.
-
#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
#appid ⇒ Object
Returns the value of attribute appid.
5 6 7 |
# File 'lib/ratis/config.rb', line 5 def appid @appid end |
#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 |
# File 'lib/ratis/config.rb', line 7 def valid? !(endpoint.nil? || endpoint.empty? || namespace.nil? || namespace.empty? || appid.nil? || appid.empty?) end |