Class: Torkify::Event::StatusChangeEvent
- Inherits:
-
Struct
- Object
- Struct
- Torkify::Event::StatusChangeEvent
- Includes:
- Message
- Defined in:
- lib/torkify/event/status_change_event.rb
Overview
Event used for changes in test status.
Types:
- pass_now_fail
- fail_now_pass
Includes the actual fail/pass event as a separate object.
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
-
#file ⇒ Object
Returns the value of attribute file.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods included from Message
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event
13 14 15 |
# File 'lib/torkify/event/status_change_event.rb', line 13 def event @event end |
#file ⇒ Object
Returns the value of attribute file
13 14 15 |
# File 'lib/torkify/event/status_change_event.rb', line 13 def file @file end |
#type ⇒ Object
Returns the value of attribute type
13 14 15 |
# File 'lib/torkify/event/status_change_event.rb', line 13 def type @type end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/torkify/event/status_change_event.rb', line 16 def to_s "#{type.upcase.gsub('_',' ')} #{file}" end |