Class: TaskWarrior::Dependencies::Presenter

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

Overview

Presents a thing to the graph

Direct Known Subclasses

NullPresenter, ProjectPresenter, TaskPresenter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Presenter

Returns a new instance of Presenter.



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

def initialize(id)
  @id = id
  @attributes = {:label => id, :labelloc => 'top'}
end

Instance Attribute Details

#attributesObject



12
13
14
# File 'lib/twdeps/presenter.rb', line 12

def attributes
  @attributes
end

#idObject



16
17
18
# File 'lib/twdeps/presenter.rb', line 16

def id
  @id
end