Class: AutomationObject::BluePrint::PageObjectAdapter::Hook

Inherits:
Composite
  • Object
show all
Defined in:
lib/automation_object/blue_print/page_object_adapter/hook.rb

Overview

Hook composite

Instance Method Summary collapse

Instance Method Details

#live?Array<HookElementRequirements>

Returns array of element requirements

Returns:



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/automation_object/blue_print/page_object_adapter/hook.rb', line 13

def live?
  return @live if defined? @live

  children = get_property(:live?)
  children = children.is_a?(Array) ? children : []

  @live = create_array_children(:live, children,
                                interface: HookElementRequirements,
                                location: location + '[live?]')
  @live
end