Class: CloudFormula::Validator::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudformula/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Rule

Returns a new instance of Rule


21
22
23
24
# File 'lib/cloudformula/validator.rb', line 21

def initialize(name, value)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject

Returns the value of attribute name


20
21
22
# File 'lib/cloudformula/validator.rb', line 20

def name
  @name
end

#valueObject

Returns the value of attribute value


20
21
22
# File 'lib/cloudformula/validator.rb', line 20

def value
  @value
end