Class: Errapi::Plugins::Location
- Inherits:
-
Object
- Object
- Errapi::Plugins::Location
- Defined in:
- lib/errapi/plugins/location.rb
Class Attribute Summary collapse
-
.camelize ⇒ Object
Returns the value of attribute camelize.
-
.config ⇒ Object
writeonly
Sets the attribute config.
Class Method Summary collapse
Class Attribute Details
.camelize ⇒ Object
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
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 |