Class: LcpRuby::Kanban::Swimlane
- Inherits:
-
Struct
- Object
- Struct
- LcpRuby::Kanban::Swimlane
- 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
-
#collapsed ⇒ Object
Returns the value of attribute collapsed.
-
#count ⇒ Object
Returns the value of attribute count.
-
#label ⇒ Object
Returns the value of attribute label.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, label:, count: nil, collapsed: false) ⇒ Swimlane
constructor
A new instance of Swimlane.
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
#collapsed ⇒ Object
Returns the value of attribute collapsed
9 10 11 |
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9 def collapsed @collapsed end |
#count ⇒ Object
Returns the value of attribute count
9 10 11 |
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9 def count @count end |
#label ⇒ Object
Returns the value of attribute label
9 10 11 |
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9 def label @label end |
#value ⇒ Object
Returns the value of attribute value
9 10 11 |
# File 'lib/lcp_ruby/kanban/swimlane.rb', line 9 def value @value end |