Class: AutomationObject::BluePrint::HashAdapter::AutomaticModalChange
- Defined in:
- lib/automation_object/blue_print/hash_adapter/automatic_modal_change.rb
Overview
Automatic Modal Change 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
#close ⇒ Object
31 32 33 |
# File 'lib/automation_object/blue_print/hash_adapter/automatic_modal_change.rb', line 31 def close hash[:close] ||= false end |
#modal_name ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/automation_object/blue_print/hash_adapter/automatic_modal_change.rb', line 16 def modal_name modal_name = hash[:modal_name] case modal_name when Symbol, String return modal_name.to_sym else return nil end end |
#number_of_checks ⇒ Object
27 28 29 |
# File 'lib/automation_object/blue_print/hash_adapter/automatic_modal_change.rb', line 27 def number_of_checks hash[:number_of_checks] ||= 1 end |