Class: CPEE::ProcessTransformation::Alternative

Inherits:
Array
  • Object
show all
Includes:
Container
Defined in:
lib/cpee/processtransformation/structures.rb

Overview

{{{

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Container

#container?

Constructor Details

#initialize(id) ⇒ Alternative

Returns a new instance of Alternative.



87
88
89
90
91
92
93
# File 'lib/cpee/processtransformation/structures.rb', line 87

def initialize(id)
  @container = true
  @id = id
  @condition = []
  @condition_type = nil
  @attributes = {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



85
86
87
# File 'lib/cpee/processtransformation/structures.rb', line 85

def attributes
  @attributes
end

#conditionObject

Returns the value of attribute condition.



84
85
86
# File 'lib/cpee/processtransformation/structures.rb', line 84

def condition
  @condition
end

#condition_typeObject

Returns the value of attribute condition_type.



84
85
86
# File 'lib/cpee/processtransformation/structures.rb', line 84

def condition_type
  @condition_type
end

#idObject (readonly)

Returns the value of attribute id.



85
86
87
# File 'lib/cpee/processtransformation/structures.rb', line 85

def id
  @id
end

Instance Method Details

#condition?Boolean

Returns:

  • (Boolean)


86
# File 'lib/cpee/processtransformation/structures.rb', line 86

def condition?; true; end