Class: TraceViz::Formatters::Log::SummaryGroupFormatter

Inherits:
BaseFormatter show all
Includes:
Helpers::Log::DepthHelper, Helpers::Log::MethodNameHelper, Helpers::Log::Summary::ParamsHelper
Defined in:
lib/trace_viz/formatters/log/summary_group_formatter.rb

Instance Method Summary collapse

Methods included from Helpers::Log::Summary::ParamsHelper

#format_params_template

Methods included from Helpers::Log::MethodNameHelper

#format_method_name

Methods included from Helpers::Log::DepthHelper

#format_depth

Methods included from Helpers::Log::ColorHelper

#colorize, #colorize_for

Methods included from Helpers::MethodDetailsHelper

#method_name_representation

Methods included from Helpers::ResultHelper

#result_representation

Methods included from Helpers::SourceHelper

#source_location_representation

Methods included from Helpers::ParamsHelper

#params_representation

Methods included from Helpers::TimeHelper

#execution_time_representation

Methods included from Helpers::DepthHelper

#depth_representation

Methods included from Helpers::IndentHelper

#indent_representation

Instance Method Details

#call(trace_data) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/trace_viz/formatters/log/summary_group_formatter.rb', line 13

def call(trace_data)
  [
    indent_representation(trace_data),
    format_depth(trace_data, config),
    Defaults::Actions.emoji_for(:processing),
    format_method_name(trace_data, config),
    format_params_template(trace_data, config),
    summary_info(trace_data),
  ].compact.join(" ")
end