Module: AutomationObject::BluePrint::HashAdapter

Defined in:
lib/automation_object/blue_print/hash_adapter.rb,
lib/automation_object/blue_print/hash_adapter/top.rb,
lib/automation_object/blue_print/hash_adapter/hook.rb,
lib/automation_object/blue_print/hash_adapter/view.rb,
lib/automation_object/blue_print/hash_adapter/modal.rb,
lib/automation_object/blue_print/hash_adapter/screen.rb,
lib/automation_object/blue_print/hash_adapter/element.rb,
lib/automation_object/blue_print/hash_adapter/composite.rb,
lib/automation_object/blue_print/hash_adapter/hook_action.rb,
lib/automation_object/blue_print/hash_adapter/element_hash.rb,
lib/automation_object/blue_print/hash_adapter/custom_method.rb,
lib/automation_object/blue_print/hash_adapter/element_array.rb,
lib/automation_object/blue_print/hash_adapter/automatic_modal_change.rb,
lib/automation_object/blue_print/hash_adapter/helpers/element_helper.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validation_error.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validation_helper.rb,
lib/automation_object/blue_print/hash_adapter/hook_element_requirements.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate.rb,
lib/automation_object/blue_print/hash_adapter/helpers/multiple_elements_helper.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_instance_of.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_presence_of.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_allowed_keys.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_view_presence_of.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_modal_presence_of.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_screen_presence_of.rb,
lib/automation_object/blue_print/hash_adapter/helpers/validators/validate_element_presence_of.rb

Overview

BluePrint Hash Adapter

Defined Under Namespace

Modules: ElementHelper, MultipleElementsHelper, ValidationHelper, Validators Classes: AutomaticModalChange, Composite, CustomMethod, Element, ElementArray, ElementHash, Hook, HookAction, HookElementRequirements, Modal, Screen, Top, ValidationError, View

Class Method Summary collapse

Class Method Details

.build(hash = {}) ⇒ AutomationObject::BluePrint::Composite::Top

Returns Composite BluePrint Object

Parameters:

  • hash (Hash) (defaults to: {})

    that includes all the information needed to create a BluePrint

Returns:



14
15
16
17
18
19
# File 'lib/automation_object/blue_print/hash_adapter.rb', line 14

def build(hash = {})
  hash.symbolize_keys_deep!

  top_hash = self::Top.new(hash)
  AutomationObject::BluePrint::Composite::Top.new(top_hash)
end