Class: Torkify::TestEvent
- Inherits:
-
Struct
- Object
- Struct
- Torkify::TestEvent
- Includes:
- EventMessage
- Defined in:
- lib/torkify/events/test_event.rb
Overview
Event used when a test is started.
This is currently only one type: ‘test’
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#log_file ⇒ Object
Returns the value of attribute log_file.
-
#type ⇒ Object
Returns the value of attribute type.
-
#worker ⇒ Object
Returns the value of attribute worker.
Instance Method Summary collapse
Methods included from EventMessage
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
7 8 9 |
# File 'lib/torkify/events/test_event.rb', line 7 def file @file end |
#lines ⇒ Object
Returns the value of attribute lines
7 8 9 |
# File 'lib/torkify/events/test_event.rb', line 7 def lines @lines end |
#log_file ⇒ Object
Returns the value of attribute log_file
7 8 9 |
# File 'lib/torkify/events/test_event.rb', line 7 def log_file @log_file end |
#type ⇒ Object
Returns the value of attribute type
7 8 9 |
# File 'lib/torkify/events/test_event.rb', line 7 def type @type end |
#worker ⇒ Object
Returns the value of attribute worker
7 8 9 |
# File 'lib/torkify/events/test_event.rb', line 7 def worker @worker end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 |
# File 'lib/torkify/events/test_event.rb', line 10 def to_s s = "#{type.upcase} #{file}" s += lines.any? ? " (lines #{lines.join(', ')})" : '' end |