Class: Kangaroo::Util::Proxy::Wizard

Inherits:
Kangaroo::Util::Proxy show all
Defined in:
lib/kangaroo/util/proxy/wizard.rb

Instance Method Summary collapse

Methods inherited from Kangaroo::Util::Proxy

#__initialize__, #call!, new

Instance Method Details

#create(name, datas = {}) ⇒ Number

Create Wizard

Parameters:

  • name (String)

    wizard name to create

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

Returns:

  • (Number)

    id of created wizard



9
10
11
# File 'lib/kangaroo/util/proxy/wizard.rb', line 9

def create name, datas = {}
  call! :create, name, datas
end

#execute(id, datas, action = 'init', context = {}) ⇒ Object

Execute an action on a wizard

Parameters:

  • id (Number)

    wizard id

  • datas (Hash)
  • action (String) (defaults to: 'init')
  • context (Hash) (defaults to: {})

Returns:

  • return value of action



20
21
22
# File 'lib/kangaroo/util/proxy/wizard.rb', line 20

def execute id, datas, action = 'init', context = {}
  call! :execute, id, datas, action, context
end