Class: Rack::Metrics::Config
- Inherits:
-
Object
- Object
- Rack::Metrics::Config
- Defined in:
- lib/rack/metrics/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#environments ⇒ Object
Returns the value of attribute environments.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 |
# File 'lib/rack/metrics/config.rb', line 6 def initialize @environments = [:production] @endpoint = "https://rack-metrics.com" end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/rack/metrics/config.rb', line 4 def api_key @api_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
4 5 6 |
# File 'lib/rack/metrics/config.rb', line 4 def endpoint @endpoint end |
#environments ⇒ Object
Returns the value of attribute environments.
4 5 6 |
# File 'lib/rack/metrics/config.rb', line 4 def environments @environments end |