Class: CloudFormula::Validator::Rule
- Inherits:
-
Object
- Object
- CloudFormula::Validator::Rule
- Defined in:
- lib/cloudformula/validator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Rule
constructor
A new instance of Rule.
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
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/cloudformula/validator.rb', line 20 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
20 21 22 |
# File 'lib/cloudformula/validator.rb', line 20 def value @value end |