Class: Torkify::Event::TestEvent
- Inherits:
-
Struct
- Object
- Struct
- Torkify::Event::TestEvent
- Includes:
- Message
- Defined in:
- lib/torkify/event/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 Message
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
8 9 10 |
# File 'lib/torkify/event/test_event.rb', line 8 def file @file end |
#lines ⇒ Object
Returns the value of attribute lines
8 9 10 |
# File 'lib/torkify/event/test_event.rb', line 8 def lines @lines end |
#log_file ⇒ Object
Returns the value of attribute log_file
8 9 10 |
# File 'lib/torkify/event/test_event.rb', line 8 def log_file @log_file end |
#type ⇒ Object
Returns the value of attribute type
8 9 10 |
# File 'lib/torkify/event/test_event.rb', line 8 def type @type end |
#worker ⇒ Object
Returns the value of attribute worker
8 9 10 |
# File 'lib/torkify/event/test_event.rb', line 8 def worker @worker end |
Instance Method Details
#to_s ⇒ Object
11 12 13 14 |
# File 'lib/torkify/event/test_event.rb', line 11 def to_s s = "#{type.upcase} #{file}" s += lines.any? ? " (lines #{lines.join(', ')})" : '' end |