Class: PT::Flow::TasksTable

Inherits:
TasksTable
  • Object
show all
Defined in:
lib/pt-flow/tasks_table.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dataset) ⇒ TasksTable

Returns a new instance of TasksTable.



3
4
5
# File 'lib/pt-flow/tasks_table.rb', line 3

def initialize(dataset)
  @rows = dataset.map { |row| TaskRow.new(row, dataset) }
end

Class Method Details

.fieldsObject



7
8
9
# File 'lib/pt-flow/tasks_table.rb', line 7

def self.fields
  [:name, :story_type, :current_state, :owned_by]
end