Class: Evil::Client::Builder::Operation
- Inherits:
-
Evil::Client::Builder
- Object
- Evil::Client::Builder
- Evil::Client::Builder::Operation
- Defined in:
- lib/evil/client/builder/operation.rb
Overview
Lazy container for a [#schema] and [#parent] settings of a [#new] operation to be initialized with its own options, that reload the [#parent] ones.
Instance Attribute Summary
Attributes inherited from Evil::Client::Builder
Instance Method Summary collapse
-
#call(options) ⇒ Array
(also: #[])
Builds and calls operation at once.
-
#new(options) ⇒ Evil::Client::Container::Operation
Builds new operation with options reloading those of its [#parent].
-
#to_s ⇒ String
Human-readable representation of the handler.
Methods inherited from Evil::Client::Builder
Instance Method Details
#call(options) ⇒ Array Also known as: []
Builds and calls operation at once
35 36 37 |
# File 'lib/evil/client/builder/operation.rb', line 35 def call(**) new(**).call end |
#new(options) ⇒ Evil::Client::Container::Operation
Builds new operation with options reloading those of its [#parent]
25 26 27 |
# File 'lib/evil/client/builder/operation.rb', line 25 def new(**) Container::Operation.new schema, **parent..merge() end |
#to_s ⇒ String
Human-readable representation of the handler
15 16 17 |
# File 'lib/evil/client/builder/operation.rb', line 15 def to_s "#{parent}.operations[:#{schema.name}]" end |