Class: Metrico::Config
- Inherits:
-
Object
- Object
- Metrico::Config
- Defined in:
- lib/metrico/config.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#nats_connect_options ⇒ Object
Returns the value of attribute nats_connect_options.
-
#on_close ⇒ Object
Returns the value of attribute on_close.
-
#on_disconnect ⇒ Object
Returns the value of attribute on_disconnect.
-
#on_error ⇒ Object
Returns the value of attribute on_error.
-
#on_reconnect ⇒ Object
Returns the value of attribute on_reconnect.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 |
# File 'lib/metrico/config.rb', line 10 def initialize @subject = 'metrico' end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def app_name @app_name end |
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def enabled @enabled end |
#hostname ⇒ Object
Returns the value of attribute hostname.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def hostname @hostname end |
#nats_connect_options ⇒ Object
Returns the value of attribute nats_connect_options.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def @nats_connect_options end |
#on_close ⇒ Object
Returns the value of attribute on_close.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def on_close @on_close end |
#on_disconnect ⇒ Object
Returns the value of attribute on_disconnect.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def on_disconnect @on_disconnect end |
#on_error ⇒ Object
Returns the value of attribute on_error.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def on_error @on_error end |
#on_reconnect ⇒ Object
Returns the value of attribute on_reconnect.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def on_reconnect @on_reconnect end |
#subject ⇒ Object
Returns the value of attribute subject.
3 4 5 |
# File 'lib/metrico/config.rb', line 3 def subject @subject end |