Class: Metrico::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_nameObject

Returns the value of attribute app_name.



3
4
5
# File 'lib/metrico/config.rb', line 3

def app_name
  @app_name
end

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/metrico/config.rb', line 3

def enabled
  @enabled
end

#hostnameObject

Returns the value of attribute hostname.



3
4
5
# File 'lib/metrico/config.rb', line 3

def hostname
  @hostname
end

#nats_connect_optionsObject

Returns the value of attribute nats_connect_options.



3
4
5
# File 'lib/metrico/config.rb', line 3

def nats_connect_options
  @nats_connect_options
end

#on_closeObject

Returns the value of attribute on_close.



3
4
5
# File 'lib/metrico/config.rb', line 3

def on_close
  @on_close
end

#on_disconnectObject

Returns the value of attribute on_disconnect.



3
4
5
# File 'lib/metrico/config.rb', line 3

def on_disconnect
  @on_disconnect
end

#on_errorObject

Returns the value of attribute on_error.



3
4
5
# File 'lib/metrico/config.rb', line 3

def on_error
  @on_error
end

#on_reconnectObject

Returns the value of attribute on_reconnect.



3
4
5
# File 'lib/metrico/config.rb', line 3

def on_reconnect
  @on_reconnect
end

#subjectObject

Returns the value of attribute subject.



3
4
5
# File 'lib/metrico/config.rb', line 3

def subject
  @subject
end