Class: Trailblazer::Operation::Nested::Options::Output
- Inherits:
-
Object
- Object
- Trailblazer::Operation::Nested::Options::Output
- Includes:
- Element
- Defined in:
- lib/trailblazer/operation/nested.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Dynamic
Instance Method Summary collapse
Methods included from Element
Instance Method Details
#call(input, options, result) ⇒ Object
88 89 90 |
# File 'lib/trailblazer/operation/nested.rb', line 88 def call(input, , result) mutable_data_for(result).each { |k,v| [k] = v } end |
#mutable_data_for(result) ⇒ Object
92 93 94 |
# File 'lib/trailblazer/operation/nested.rb', line 92 def mutable_data_for(result) result.instance_variable_get(:@data).to_mutable_data end |