Class: CloudFormer::Condition
- Inherits:
-
Object
- Object
- CloudFormer::Condition
- Defined in:
- lib/cloud_former/conditions/condition.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
Instance Method Summary collapse
- #dump_json ⇒ Object
- #get_name ⇒ Object
-
#initialize(name, function) ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize(name, function) ⇒ Condition
Returns a new instance of Condition.
5 6 7 8 |
# File 'lib/cloud_former/conditions/condition.rb', line 5 def initialize(name, function) @name = name @function = function end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
3 4 5 |
# File 'lib/cloud_former/conditions/condition.rb', line 3 def function @function end |
Instance Method Details
#dump_json ⇒ Object
14 15 16 |
# File 'lib/cloud_former/conditions/condition.rb', line 14 def dump_json function.dump_json end |
#get_name ⇒ Object
10 11 12 |
# File 'lib/cloud_former/conditions/condition.rb', line 10 def get_name @name end |