Class: MistApi::UnknownEvent
- Inherits:
-
Object
- Object
- MistApi::UnknownEvent
- Defined in:
- lib/mist_api/events/unknown_event.rb
Overview
Represents an unrecognized or unsupported event during processing.
Instance Attribute Summary collapse
- #errors ⇒ Array<String> readonly
Instance Method Summary collapse
-
#initialize(errors) ⇒ UnknownEvent
constructor
Initialize with the errors that caused the failure.
-
#inspect ⇒ String
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ String
Provides a user-friendly string representation of the failure.
Constructor Details
#initialize(errors) ⇒ UnknownEvent
Initialize with the errors that caused the failure.
14 15 16 |
# File 'lib/mist_api/events/unknown_event.rb', line 14 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Array<String> (readonly)
10 11 12 |
# File 'lib/mist_api/events/unknown_event.rb', line 10 def errors @errors end |
Instance Method Details
#inspect ⇒ String
Provides a debugging-friendly string with detailed object information.
27 28 29 30 |
# File 'lib/mist_api/events/unknown_event.rb', line 27 def inspect class_name = self.class.name.split('::').last "<#{class_name} errors: #{@errors.inspect}>" end |
#to_s ⇒ String
Provides a user-friendly string representation of the failure.
20 21 22 23 |
# File 'lib/mist_api/events/unknown_event.rb', line 20 def to_s class_name = self.class.name.split('::').last "<#{class_name} errors: #{@errors}>" end |