Sha256: 1efb6346e26958951d7d175be13bc10fd391ba93de41b580baacdeb76687a4ab

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

module Rasti
  class App
    class Job < Asynchronic::Job

      extend ClassConfig

      attr_config :environment

      def call
        raise "Undefined #{self.class.name}.environment" unless self.class.environment

        session = params[:session]
        session.job_id = @process.id
        interaction = params[:interaction].new self.class.environment, session
        interaction.call params[:interaction].build_form params[:params]
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rasti-app-2.0.0 lib/rasti/app/job.rb
rasti-app-1.1.0 lib/rasti/app/job.rb