Class: Kanbanize::Board::Lane

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(board, attributes) ⇒ Lane

Returns a new instance of Lane.


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

def initialize(board, attributes)
  @board = board
  @name = attributes['lcname']
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


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

def name
  @name
end

Instance Method Details

#tasksObject


11
12
13
# File 'lib/kanbanize/board/lane.rb', line 11

def tasks
  @tasks ||= tasks!
end

#tasks!Object


15
16
17
# File 'lib/kanbanize/board/lane.rb', line 15

def tasks!
  @board.tasks!.select{|t| t.lane == self}
end