Class: Errapi::Plugins::Location
- Defined in:
- lib/errapi/plugins/location.rb
Instance Attribute Summary collapse
-
#camelize ⇒ Object
Returns the value of attribute camelize.
-
#config ⇒ Object
writeonly
Sets the attribute config.
Instance Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#camelize ⇒ Object
Returns the value of attribute camelize.
6 7 8 |
# File 'lib/errapi/plugins/location.rb', line 6 def camelize @camelize end |
#config=(value) ⇒ Object (writeonly)
Sets the attribute config
5 6 7 |
# File 'lib/errapi/plugins/location.rb', line 5 def config=(value) @config = value end |
Instance Method Details
#serialize_error(error, serialized) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# 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 |