Class: AutomationObject::BluePrint::HashAdapter::CustomMethod
- Defined in:
- lib/automation_object/blue_print/hash_adapter/custom_method.rb
Overview
Custom method composite
Instance Attribute Summary
Attributes inherited from Composite
Attributes included from ValidationHelper
Attributes inherited from Composite
#children, #location, #name, #parent
Instance Method Summary collapse
Methods inherited from Composite
#create_array_children, #create_composite, #create_hash_children, #get_child, #get_children, #initialize
Methods included from ValidationHelper
#add_errors, included, #valid?
Methods inherited from Composite
#add_has_many_relationships, #add_has_one_relationships, #get_child, #get_children, has_many, has_many_relationships, has_one, has_one_relationships, #initialize, #top
Methods included from Reflection
Methods included from CompositeHook
#after_create_run, #before_create_run, included
Constructor Details
This class inherits a constructor from AutomationObject::BluePrint::HashAdapter::Composite
Instance Method Details
#element_method ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/automation_object/blue_print/hash_adapter/custom_method.rb', line 15 def element_method element_method = hash[:element_method] case element_method when Symbol, String return element_method.to_sym else return nil end end |
#evaluate ⇒ Object
26 27 28 |
# File 'lib/automation_object/blue_print/hash_adapter/custom_method.rb', line 26 def evaluate hash[:evaluate] ||= nil end |