Module: Trailblazer::Operation::Representer::Rendering

Included in:
Trailblazer::Operation::Representer
Defined in:
lib/trailblazer/operation/representer.rb

Instance Method Summary collapse

Instance Method Details

#representedObject



46
47
48
# File 'lib/trailblazer/operation/representer.rb', line 46

def represented
  contract
end

#to_jsonObject



42
43
44
# File 'lib/trailblazer/operation/representer.rb', line 42

def to_json(*)
  self.class.representer_class.new(represented).to_json
end