Class: LcpRuby::Kanban::Swimlane

Inherits:
Struct
  • Object
show all
Defined in:
lib/lcp_ruby/kanban/swimlane.rb

Overview

Value object describing one swimlane row (Phase 3 — 2D grid).

Shipped in Phase 1 with the rest of the value objects so the contract (HostProvider#swimlanes returning an array of Swimlane) is stable from day one. Phase 1 controllers never instantiate Swimlane; the special default lane key is ‘:_default`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, label:, count: nil, collapsed: false) ⇒ Swimlane

Returns a new instance of Swimlane.



16
17
18
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 16

def initialize(value:, label:, count: nil, collapsed: false)
  super
end

Instance Attribute Details

#collapsedObject

Returns the value of attribute collapsed

Returns:

  • (Object)

    the current value of collapsed



9
10
11
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9

def collapsed
  @collapsed
end

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



9
10
11
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9

def count
  @count
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



9
10
11
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9

def label
  @label
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



9
10
11
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9

def value
  @value
end