Class: Pipeline::Event
- Inherits:
-
Object
- Object
- Pipeline::Event
- Defined in:
- lib/pipeline/event.rb
Overview
Tracks internal pipeline events. Can be used for control, but also tracking what happens.
Instance Attribute Summary collapse
-
#appname ⇒ Object
Returns the value of attribute appname.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(appname, parent = nil) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(appname, parent = nil) ⇒ Event
Returns a new instance of Event.
8 9 10 11 12 |
# File 'lib/pipeline/event.rb', line 8 def initialize appname, parent = nil @appname = appname @parent = parent @timestamp = Time.now end |
Instance Attribute Details
#appname ⇒ Object
Returns the value of attribute appname.
6 7 8 |
# File 'lib/pipeline/event.rb', line 6 def appname @appname end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
4 5 6 |
# File 'lib/pipeline/event.rb', line 4 def parent @parent end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/pipeline/event.rb', line 5 def path @path end |