Class: LcpRuby::Kanban::Column
- Inherits:
-
Struct
- Object
- Struct
- LcpRuby::Kanban::Column
- Defined in:
- lib/lcp_ruby/kanban/column.rb
Overview
Value object describing one kanban column.
Phase 1 uses only ‘value`, `label`, `count`, `color`. Other slots (`icon`, `collapsed`, `wip_limit`, `aggregate`, `progress`, `meta`) are populated by Phase 2+ providers without changing the contract.
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
Returns the value of attribute aggregate.
-
#collapsed ⇒ Object
Returns the value of attribute collapsed.
-
#color ⇒ Object
Returns the value of attribute color.
-
#count ⇒ Object
Returns the value of attribute count.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#label ⇒ Object
Returns the value of attribute label.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#progress ⇒ Object
Returns the value of attribute progress.
-
#value ⇒ Object
Returns the value of attribute value.
-
#wip_limit ⇒ Object
Returns the value of attribute wip_limit.
Instance Method Summary collapse
-
#initialize(value:, label:, count: nil, color: nil, icon: nil, collapsed: false, wip_limit: nil, aggregate: nil, progress: nil, meta: {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(value:, label:, count: nil, color: nil, icon: nil, collapsed: false, wip_limit: nil, aggregate: nil, progress: nil, meta: {}) ⇒ Column
Returns a new instance of Column.
21 22 23 24 25 |
# File 'lib/lcp_ruby/kanban/column.rb', line 21 def initialize(value:, label:, count: nil, color: nil, icon: nil, collapsed: false, wip_limit: nil, aggregate: nil, progress: nil, meta: {}) super end |
Instance Attribute Details
#aggregate ⇒ Object
Returns the value of attribute aggregate
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def aggregate @aggregate end |
#collapsed ⇒ Object
Returns the value of attribute collapsed
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def collapsed @collapsed end |
#color ⇒ Object
Returns the value of attribute color
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def color @color end |
#count ⇒ Object
Returns the value of attribute count
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def count @count end |
#icon ⇒ Object
Returns the value of attribute icon
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def icon @icon end |
#label ⇒ Object
Returns the value of attribute label
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def label @label end |
#meta ⇒ Object
Returns the value of attribute meta
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def @meta end |
#progress ⇒ Object
Returns the value of attribute progress
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def progress @progress end |
#value ⇒ Object
Returns the value of attribute value
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def value @value end |
#wip_limit ⇒ Object
Returns the value of attribute wip_limit
8 9 10 |
# File 'lib/lcp_ruby/kanban/column.rb', line 8 def wip_limit @wip_limit end |