Class: Metrux::Commands::Base
- Inherits:
-
Object
- Object
- Metrux::Commands::Base
- Extended by:
- Forwardable
- Includes:
- Loggable
- Defined in:
- lib/metrux/commands/base.rb
Direct Known Subclasses
Gauge, Meter, NoticeError, Timer, Write
Constant Summary collapse
- DEFAULT_TAGS =
{ hostname: Metrux::HOST, program_name: Metrux::PROGRAM_NAME }.freeze
Instance Method Summary collapse
-
#initialize(config, connection) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config, connection) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 |
# File 'lib/metrux/commands/base.rb', line 11 def initialize(config, connection) @config = config @connection = connection @logger = config.logger @prefix = config.prefix end |