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



94
95
96
# File 'lib/trailblazer/operation/nested.rb', line 94

def call(input, options, result)
  mutable_data_for(result).each { |k,v| options[k] = v }
end

#mutable_data_for(result) ⇒ Object



98
99
100
# File 'lib/trailblazer/operation/nested.rb', line 98

def mutable_data_for(result)
  result.instance_variable_get(:@data).to_mutable_data
end