Class: WebPipe::ConnSupport::Composition Private
- Inherits:
-
Object
- Object
- WebPipe::ConnSupport::Composition
- 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
- #operations ⇒ Object readonly private
Instance Method Summary collapse
- #call(conn) ⇒ Object private
-
#initialize(operations) ⇒ Composition
constructor
private
A new instance of Composition.
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
#operations ⇒ Object (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 |