Class: Condition

Inherits:
Object
  • Object
show all
Includes:
CfnParser
Defined in:
lib/condition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CfnParser

#array, #hash, #intrinsic_function, #intrinsic_function?, #parse_cfn, #primitive

Constructor Details

#initialize(name, eval) ⇒ Condition

Returns a new instance of Condition.



5
6
7
8
# File 'lib/condition.rb', line 5

def initialize(name, eval)
  @name        = name
  @evaluations = parse_cfn(eval)
end

Instance Attribute Details

#evaluationsObject (readonly)

Returns the value of attribute evaluations.



3
4
5
# File 'lib/condition.rb', line 3

def evaluations
  @evaluations
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/condition.rb', line 3

def name
  @name
end