Class: Torkify::Event::StatusChangeEvent

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Methods included from Message

#message

Instance Attribute Details

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



13
14
15
# File 'lib/torkify/event/status_change_event.rb', line 13

def event
  @event
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



13
14
15
# File 'lib/torkify/event/status_change_event.rb', line 13

def file
  @file
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



13
14
15
# File 'lib/torkify/event/status_change_event.rb', line 13

def type
  @type
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/torkify/event/status_change_event.rb', line 16

def to_s
  "#{type.upcase.gsub('_',' ')} #{file}"
end