Class: Pipeline::Event

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

Instance Method Summary collapse

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

#appnameObject

Returns the value of attribute appname.



6
7
8
# File 'lib/pipeline/event.rb', line 6

def appname
  @appname
end

#parentObject (readonly)

Returns the value of attribute parent.



4
5
6
# File 'lib/pipeline/event.rb', line 4

def parent
  @parent
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/pipeline/event.rb', line 5

def path
  @path
end