class Errapi::Plugins::Location
Attributes
camelize[RW]
config[W]
Public Instance Methods
serialize_error(error, serialized)
click to toggle source
# File lib/errapi/plugins/location.rb, line 8 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
Private Instance Methods
camelize?()
click to toggle source
# File lib/errapi/plugins/location.rb, line 25 def camelize? @camelize.nil? ? @config.options.camelize : @camelize end
location_type_key()
click to toggle source
# File lib/errapi/plugins/location.rb, line 21 def location_type_key camelize? ? :locationType : :location_type end