Class: Kanbanize::Board::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/kanbanize/board/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column, lane) ⇒ Cell

Returns a new instance of Cell.


6
7
8
9
10
# File 'lib/kanbanize/board/cell.rb', line 6

def initialize(column, lane)
  @column = column
  @lane = lane
  @tasks = @column.board.tasks.select{|t| t.column == @column && t.lane == @lane}
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column


4
5
6
# File 'lib/kanbanize/board/cell.rb', line 4

def column
  @column
end

#laneObject (readonly)

Returns the value of attribute lane


4
5
6
# File 'lib/kanbanize/board/cell.rb', line 4

def lane
  @lane
end

#tasksObject (readonly)

Returns the value of attribute tasks


4
5
6
# File 'lib/kanbanize/board/cell.rb', line 4

def tasks
  @tasks
end

Instance Method Details

#==(other) ⇒ Object


12
13
14
# File 'lib/kanbanize/board/cell.rb', line 12

def ==(other)
  @column == other.column && @lane == other.lane
end