Class: AutomationObject::BluePrint::HashAdapter::Top

Inherits:
Composite
  • Object
show all
Defined in:
lib/automation_object/blue_print/hash_adapter/top.rb

Overview

Top composite

Instance Method Summary collapse

Instance Method Details

#base_urlString?

Returns base url to navigate to upon framework creation

Returns:

  • (String, nil)

    base url to navigate to upon framework creation



32
33
34
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 32

def base_url
  hash[:base_url] ||= nil
end

#default_screenSymbol?

Returns default screen to be set when framework is created

Returns:

  • (Symbol, nil)

    default screen to be set when framework is created



37
38
39
40
41
42
43
44
45
46
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 37

def default_screen
  default_screen = hash[:default_screen]

  case default_screen
  when Symbol, String
    return default_screen.to_sym
  else
    return nil
  end
end

#screen_transition_sleepNumeric

Returns sleep when transitioning screens

Returns:

  • (Numeric)

    sleep when transitioning screens



49
50
51
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 49

def screen_transition_sleep
  hash[:screen_transition_sleep] ||= 0
end

#throttle_driver_methodsHash

Returns driver methods to throttle

Returns:

  • (Hash)

    driver methods to throttle



54
55
56
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 54

def throttle_driver_methods
  hash[:throttle_driver_methods] ||= {}
end

#throttle_element_methodsHash

Returns element methods to throttle

Returns:

  • (Hash)

    element methods to throttle



59
60
61
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 59

def throttle_element_methods
  hash[:throttle_element_methods] ||= {}
end