Class: MetricsLogger::Configuration
- Inherits:
-
Object
- Object
- MetricsLogger::Configuration
- Defined in:
- lib/metrics_logger/configuration.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#backup_endpoint ⇒ Object
Returns the value of attribute backup_endpoint.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#sync_interval ⇒ Object
Returns the value of attribute sync_interval.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/metrics_logger/configuration.rb', line 5 def initialize @endpoint = nil @backup_endpoint = nil @sync_interval = 60 @app_name = nil @tags = {} end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/metrics_logger/configuration.rb', line 3 def app_name @app_name end |
#backup_endpoint ⇒ Object
Returns the value of attribute backup_endpoint.
3 4 5 |
# File 'lib/metrics_logger/configuration.rb', line 3 def backup_endpoint @backup_endpoint end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/metrics_logger/configuration.rb', line 3 def endpoint @endpoint end |
#sync_interval ⇒ Object
Returns the value of attribute sync_interval.
3 4 5 |
# File 'lib/metrics_logger/configuration.rb', line 3 def sync_interval @sync_interval end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/metrics_logger/configuration.rb', line 3 def @tags end |