Class: InfluxReporter::ErrorMessage::Exception
- Inherits:
-
Struct
- Object
- Struct
- InfluxReporter::ErrorMessage::Exception
- Defined in:
- lib/influx_reporter/error_message/exception.rb
Constant Summary collapse
- SPLIT =
'::'
Instance Attribute Summary collapse
-
#module ⇒ Object
Returns the value of attribute module.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#module ⇒ Object
Returns the value of attribute module
5 6 7 |
# File 'lib/influx_reporter/error_message/exception.rb', line 5 def module @module end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/influx_reporter/error_message/exception.rb', line 5 def type @type end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/influx_reporter/error_message/exception.rb', line 5 def value @value end |
Class Method Details
.from(exception) ⇒ Object
8 9 10 11 |
# File 'lib/influx_reporter/error_message/exception.rb', line 8 def self.from(exception) new exception.class.to_s, exception., exception.class.to_s.split(SPLIT)[0...-1].join(SPLIT) end |