Class: MetricsLogger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/metrics_logger/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_nameObject

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_endpointObject

Returns the value of attribute backup_endpoint.



3
4
5
# File 'lib/metrics_logger/configuration.rb', line 3

def backup_endpoint
  @backup_endpoint
end

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/metrics_logger/configuration.rb', line 3

def endpoint
  @endpoint
end

#sync_intervalObject

Returns the value of attribute sync_interval.



3
4
5
# File 'lib/metrics_logger/configuration.rb', line 3

def sync_interval
  @sync_interval
end

#tagsObject

Returns the value of attribute tags.



3
4
5
# File 'lib/metrics_logger/configuration.rb', line 3

def tags
  @tags
end