Class: Trailblazer::Operation::Nested::Options::Output

Inherits:
Object
  • Object
show all
Includes:
Element
Defined in:
lib/trailblazer/operation/nested.rb

Direct Known Subclasses

Dynamic

Defined Under Namespace

Classes: Dynamic

Instance Method Summary collapse

Methods included from Element

#initialize

Instance Method Details

#call(input, options, result) ⇒ Object



88
89
90
# File 'lib/trailblazer/operation/nested.rb', line 88

def call(input, options, result)
  mutable_data_for(result).each { |k,v| options[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