Class: OpenWFE::RawExpression::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/openwfe/expressions/raw.rb

Overview

A small class wrapping a tag (a raw expression and the workitem it received at apply time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_expression, workitem) ⇒ Tag

Returns a new instance of Tag.



415
416
417
418
419
# File 'lib/openwfe/expressions/raw.rb', line 415

def initialize (raw_expression, workitem)

    @raw_expression = raw_expression.dup
    @workitem = workitem.dup
end

Instance Attribute Details

#raw_expressionObject (readonly)

Returns the value of attribute raw_expression.



406
407
408
# File 'lib/openwfe/expressions/raw.rb', line 406

def raw_expression
  @raw_expression
end

#workitemObject (readonly)

Returns the value of attribute workitem.



406
407
408
# File 'lib/openwfe/expressions/raw.rb', line 406

def workitem
  @workitem
end

Instance Method Details

#flow_expression_idObject Also known as: fei



410
411
412
# File 'lib/openwfe/expressions/raw.rb', line 410

def flow_expression_id
    @raw_expression.fei
end