Class: TraceViz::Formatters::Diagram::Sequence::MessageFormatter

Inherits:
BaseFormatter show all
Includes:
Helpers::Diagram::ActionHelper, Helpers::Diagram::ResultHelper, Helpers::ParamsHelper
Defined in:
lib/trace_viz/formatters/diagram/sequence/message_formatter.rb

Instance Method Summary collapse

Methods included from Helpers::Diagram::ResultHelper

#result_representation

Methods included from Helpers::Diagram::ActionHelper

#action_representation

Methods included from Helpers::ParamsHelper

#params_representation

Methods inherited from BaseFormatter

#call

Instance Method Details

#format_callObject



26
27
28
# File 'lib/trace_viz/formatters/diagram/sequence/message_formatter.rb', line 26

def format_call
  "Calling"
end

#format_internal_message(trace) ⇒ Object



15
16
17
18
19
20
# File 'lib/trace_viz/formatters/diagram/sequence/message_formatter.rb', line 15

def format_internal_message(trace)
  [
    action_representation(trace),
    params_representation(trace),
  ].join("")
end

#format_result(trace) ⇒ Object



22
23
24
# File 'lib/trace_viz/formatters/diagram/sequence/message_formatter.rb', line 22

def format_result(trace)
  result_representation(trace)
end

#format_returnObject



30
31
32
# File 'lib/trace_viz/formatters/diagram/sequence/message_formatter.rb', line 30

def format_return
  "Returning"
end