Sha256: 5948d89973fcb30a1393374676a6c709228e26c10e98d885fd2a86aeac8cb147

Contents?: true

Size: 652 Bytes

Versions: 34

Compression:

Stored size: 652 Bytes

Contents

class LucidLocalOperation
  extend Preact::PropDeclarationMixin
  extend LucidOperation::Steps
  include LucidOperation::PromiseRun

  class << self
    if RUBY_ENGINE != 'opal'
      def inherited(base)
        Isomorfeus.add_valid_operation_class(base)
      end
    end

    def promise_run(**props_hash)
      self.new(**props_hash).promise_run
    end
  end

  attr_reader :props
  attr_accessor :step_result

  def initialize(**props_hash)
    @props = self.class.validated_props(props_hash)
  end

  def current_user
    Isomorfeus.current_user
  end

  def pub_sub_client
    Isomorfeus.pub_sub_client
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
isomorfeus-operation-23.9.0.rc7 lib/lucid_local_operation.rb
isomorfeus-operation-23.9.0.rc6 lib/lucid_local_operation.rb
isomorfeus-operation-23.9.0.rc5 lib/lucid_local_operation.rb
isomorfeus-operation-23.9.0.rc4 lib/lucid_local_operation.rb
isomorfeus-operation-23.9.0.rc3 lib/lucid_local_operation.rb
isomorfeus-operation-23.9.0.rc2 lib/lucid_local_operation.rb
isomorfeus-operation-23.9.0.rc1 lib/lucid_local_operation.rb
isomorfeus-operation-23.8.0.rc3 lib/lucid_local_operation.rb
isomorfeus-operation-23.8.0.rc2 lib/lucid_local_operation.rb
isomorfeus-operation-23.8.0.rc1 lib/lucid_local_operation.rb
isomorfeus-operation-23.7.0.rc5 lib/lucid_local_operation.rb
isomorfeus-operation-23.7.0.rc4 lib/lucid_local_operation.rb
isomorfeus-operation-23.7.0.rc3 lib/lucid_local_operation.rb
isomorfeus-operation-23.7.0.rc2 lib/lucid_local_operation.rb
isomorfeus-operation-23.7.0.rc1 lib/lucid_local_operation.rb
isomorfeus-operation-23.6.0.rc5 lib/lucid_local_operation.rb
isomorfeus-operation-23.6.0.rc4 lib/lucid_local_operation.rb
isomorfeus-operation-23.6.0.rc3 lib/lucid_local_operation.rb
isomorfeus-operation-23.6.0.rc2 lib/lucid_local_operation.rb
isomorfeus-operation-23.6.0.rc1 lib/lucid_local_operation.rb