Class: Opbeat::ErrorMessage::Exception
- Defined in:
- lib/opbeat/error_message/exception.rb
Constant Summary collapse
- SPLIT =
'::'.freeze
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
Methods inherited from Struct
Instance Attribute Details
#module ⇒ Object
Returns the value of attribute module
3 4 5 |
# File 'lib/opbeat/error_message/exception.rb', line 3 def module @module end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/opbeat/error_message/exception.rb', line 3 def type @type end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/opbeat/error_message/exception.rb', line 3 def value @value end |
Class Method Details
.from(exception) ⇒ Object
6 7 8 9 |
# File 'lib/opbeat/error_message/exception.rb', line 6 def self.from exception new exception.class.to_s, exception., exception.class.to_s.split(SPLIT)[0...-1].join(SPLIT) end |