Class: Broadlistening::Steps::Overview

Inherits:
BaseStep
  • Object
show all
Defined in:
lib/broadlistening/steps/overview.rb

Instance Attribute Summary

Attributes inherited from BaseStep

#config, #context

Instance Method Summary collapse

Methods inherited from BaseStep

#initialize

Constructor Details

This class inherits a constructor from Broadlistening::Steps::BaseStep

Instance Method Details

#executeObject



6
7
8
9
10
11
12
13
14
# File 'lib/broadlistening/steps/overview.rb', line 6

def execute
  return context if context.labels.empty?

  top_labels = find_top_level_labels(context.labels)
  overview = generate_overview(top_labels)

  context.overview = overview
  context
end