Class: WebPipe::ConnSupport::Composition Private

Inherits:
Object
  • Object
show all
Includes:
Dry::Monads::Result::Mixin
Defined in:
lib/web_pipe/conn_support/composition.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: InvalidOperationResult

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operations) ⇒ Composition

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Composition.



27
28
29
# File 'lib/web_pipe/conn_support/composition.rb', line 27

def initialize(operations)
  @operations = operations
end

Instance Attribute Details

#operationsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



25
26
27
# File 'lib/web_pipe/conn_support/composition.rb', line 25

def operations
  @operations
end

Instance Method Details

#call(conn) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
34
35
36
37
# File 'lib/web_pipe/conn_support/composition.rb', line 31

def call(conn)
  extract_result(
    apply_operations(
      conn
    )
  )
end