Class: Errapi::Plugins::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/errapi/plugins/location.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.camelizeObject

Returns the value of attribute camelize.



5
6
7
# File 'lib/errapi/plugins/location.rb', line 5

def camelize
  @camelize
end

.config=(value) ⇒ Object (writeonly)

Sets the attribute config

Parameters:

  • value

    the value to set the attribute config to.



4
5
6
# File 'lib/errapi/plugins/location.rb', line 4

def config=(value)
  @config = value
end

Class Method Details

.serialize_error(error, serialized) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/errapi/plugins/location.rb', line 7

def serialize_error error, serialized
  if error.location && error.location.respond_to?(:serialize)

    serialized_location = error.location.serialize
    unless serialized_location.nil?
      serialized[:location] = serialized_location
      serialized[location_type_key] = error.location.location_type if error.location.respond_to? :location_type
    end
  end
end