Class: LcpRuby::Kanban::Column

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

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

#aggregateObject

Returns the value of attribute aggregate

Returns:

  • (Object)

    the current value of aggregate



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def aggregate
  @aggregate
end

#collapsedObject

Returns the value of attribute collapsed

Returns:

  • (Object)

    the current value of collapsed



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def collapsed
  @collapsed
end

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def color
  @color
end

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def count
  @count
end

#iconObject

Returns the value of attribute icon

Returns:

  • (Object)

    the current value of icon



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def icon
  @icon
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def label
  @label
end

#metaObject

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def meta
  @meta
end

#progressObject

Returns the value of attribute progress

Returns:

  • (Object)

    the current value of progress



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def progress
  @progress
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def value
  @value
end

#wip_limitObject

Returns the value of attribute wip_limit

Returns:

  • (Object)

    the current value of wip_limit



8
9
10
# File 'lib/lcp_ruby/kanban/column.rb', line 8

def wip_limit
  @wip_limit
end