Class: TaskWarrior::Dependencies::ProjectPresenter

Inherits:
Presenter
  • Object
show all
Defined in:
lib/twdeps/project_presenter.rb

Overview

Presents a project’s attributes suitable for a GraphViz cluster

Instance Attribute Summary

Attributes inherited from Presenter

#attributes, #id

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ProjectPresenter

Returns a new instance of ProjectPresenter.



7
8
9
10
# File 'lib/twdeps/project_presenter.rb', line 7

def initialize(project)
  self.id = "cluster_#{project.name}"
  self.attributes = {:label => project.name}
end