Class: Rules

Inherits:
Object
  • Object
show all
Includes:
CfnParser
Defined in:
lib/rules.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, values) ⇒ Rules

Returns a new instance of Rules.



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

def initialize(name, values)
  @name   = name
  @values = parse_cfn(values)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#valuesObject (readonly)

Returns the value of attribute values.



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

def values
  @values
end