Class: Nexaas::Auditor::StatisticsTrackers::Stathat
- Defined in:
- lib/nexaas/auditor/statistics_trackers/stathat.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(key, namespace = nil) ⇒ Stathat
constructor
A new instance of Stathat.
Methods inherited from Base
Constructor Details
#initialize(key, namespace = nil) ⇒ Stathat
Returns a new instance of Stathat.
10 11 12 13 14 15 |
# File 'lib/nexaas/auditor/statistics_trackers/stathat.rb', line 10 def initialize(key, namespace=nil) @key = key.to_s @namespace = namespace.to_s @logger = Nexaas::Auditor.configuration.logger raise ArgumentError, "required Stathat EZ Key not found" if @key == '' end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
8 9 10 |
# File 'lib/nexaas/auditor/statistics_trackers/stathat.rb', line 8 def logger @logger end |