Class: Evil::Client::DSL::Operation
- Inherits:
-
Object
- Object
- Evil::Client::DSL::Operation
- Defined in:
- lib/evil/client/dsl/operation.rb
Instance Attribute Summary collapse
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
Instance Attribute Details
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
3 4 5 |
# File 'lib/evil/client/dsl/operation.rb', line 3 def schema @schema end |
Instance Method Details
#finalize(settings) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/evil/client/dsl/operation.rb', line 5 def finalize(settings) @mutex.synchronize do @schema = @default.dup instance_exec(settings, &@block) if @block @schema[:middleware]&.finalize(settings) @schema end end |