class Errapi::Plugins::Reason

Attributes

camelize[RW]
config[W]

Public Instance Methods

serialize_error(error, serialized) click to toggle source
# File lib/errapi/plugins/reason.rb, line 8
def serialize_error error, serialized
  serialized[:reason] = serialized_reason error
end

Private Instance Methods

camelize?() click to toggle source
# File lib/errapi/plugins/reason.rb, line 18
def camelize?
  @camelize.nil? ? @config.options.camelize : @camelize
end
serialized_reason(error) click to toggle source
# File lib/errapi/plugins/reason.rb, line 14
def serialized_reason error
  camelize? ? Utils.camelize(error.reason.to_s).to_sym : error.reason
end