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.



84
85
86
87
88
89
90
# File 'lib/cpee/processtransformation/structures.rb', line 84

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



82
83
84
# File 'lib/cpee/processtransformation/structures.rb', line 82

def attributes
  @attributes
end

#conditionObject

Returns the value of attribute condition.



81
82
83
# File 'lib/cpee/processtransformation/structures.rb', line 81

def condition
  @condition
end

#condition_typeObject

Returns the value of attribute condition_type.



81
82
83
# File 'lib/cpee/processtransformation/structures.rb', line 81

def condition_type
  @condition_type
end

#idObject (readonly)

Returns the value of attribute id.



82
83
84
# File 'lib/cpee/processtransformation/structures.rb', line 82

def id
  @id
end

Instance Method Details

#condition?Boolean

Returns:

  • (Boolean)


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

def condition?; true; end