module AutomationObject::State

State Port, following port/adapter pattern Composite adapts the state to the blueprint

Public Instance Methods

create(driver, blue_prints) click to toggle source

Creates/returns a new session, attaches driver, and composite Will use a composite to help control the state @param driver [AutomationObject::Driver::Driver] driver interface @param blue_prints [AutomationObject::BluePrint::Composite::Top] Top composite interface # @return [AutomationObject::State::Top] Top instance

# File lib/automation_object/state.rb, line 16
def create(driver, blue_prints)
  top = Top.new(driver, blue_prints)
  top.start

  top
end