module Honeybadger::Conversions
@api private
Public Instance Methods
Context(object)
click to toggle source
Convert context into a Hash.
@param [Object] object The context object.
@return [Hash] The hash context.
# 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