Module: Twigg::Pivotal::Status

Defined in:
lib/twigg-pivotal/pivotal/status.rb

Overview

This module provides an overview summary of Pivotal Tracker status.

This is the main entry point for external callers, such as the ‘twigg` command-line app and the Twigg web app.

Class Method Summary collapse

Class Method Details

.statusObject



9
10
11
12
13
# File 'lib/twigg-pivotal/pivotal/status.rb', line 9

def status
  projects = Project.projects
  stories  = projects.flat_map(&:stories)
  stories.group_by(&:current_state)
end