Class: LlamaAlarm::Agent
- Inherits:
-
Object
- Object
- LlamaAlarm::Agent
- Defined in:
- lib/llama_alarm.rb
Instance Method Summary collapse
-
#initialize(api_key) ⇒ Agent
constructor
A new instance of Agent.
- #watch ⇒ Object
Constructor Details
#initialize(api_key) ⇒ Agent
Returns a new instance of Agent.
9 10 11 |
# File 'lib/llama_alarm.rb', line 9 def initialize(api_key) @api_key = api_key end |
Instance Method Details
#watch ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/llama_alarm.rb', line 13 def watch if Rails.logger extra_logger = ActiveSupport::Logger.new("extra.log") Rails.logger.extend(LogSubscriber.new) else Error.new end end |