Module: Honeybadger::Conversions Private

Included in:
ContextManager, Notice
Defined in:
lib/honeybadger/conversions.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.Context(object) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Convert context into a Hash.


11
12
13
14
# File 'lib/honeybadger/conversions.rb', line 11

def Context(object)
  object = object.to_honeybadger_context if object.respond_to?(:to_honeybadger_context)
  Hash(object)
end