Sha256: 09651693a8cd51f17f960f65680abcb036e2266c4361c79ae788d947d269cd64

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 Bytes

Contents

module Kangaroo
  module Util
    class Proxy::Wizard < Proxy
      # Create Wizard
      #
      # @param [String] name wizard name to create
      # @param [Hash] datas
      # @return [Number] id of created wizard
      def create name, datas = {}
        call! :create, name, datas
      end

      # Execute an action on a wizard
      #
      # @param [Number] id wizard id
      # @param [Hash] datas
      # @param [String] action
      # @param [Hash] context
      # @return return value of action
      def execute id, datas, action = 'init', context = {}
        call! :execute, id, datas, action, context
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kangaroo-0.1.0.alpha1 lib/kangaroo/util/proxy/wizard.rb
kangaroo-0.0.3 lib/kangaroo/util/proxy/wizard.rb
kangaroo-0.0.2 lib/kangaroo/util/proxy/wizard.rb
kangaroo-0.0.1.pre2 lib/kangaroo/util/proxy/wizard.rb
kangaroo-0.0.1.pre lib/kangaroo/util/proxy/wizard.rb