Class: BoardColumn
Instance Attribute Summary collapse
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
-
#name ⇒ Object
Returns the value of attribute name.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#status_ids ⇒ Object
readonly
Returns the value of attribute status_ids.
Instance Method Summary collapse
-
#initialize(raw) ⇒ BoardColumn
constructor
A new instance of BoardColumn.
Constructor Details
#initialize(raw) ⇒ BoardColumn
Returns a new instance of BoardColumn.
7 8 9 10 11 12 13 |
# File 'lib/jirametrics/board_column.rb', line 7 def initialize raw @raw = raw @name = raw['name'] @status_ids = raw['statuses'].collect { |status| status['id'].to_i } @min = raw['min']&.to_i @max = raw['max']&.to_i end |
Instance Attribute Details
#max ⇒ Object (readonly)
Returns the value of attribute max.
4 5 6 |
# File 'lib/jirametrics/board_column.rb', line 4 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
4 5 6 |
# File 'lib/jirametrics/board_column.rb', line 4 def min @min end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/jirametrics/board_column.rb', line 5 def name @name end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
4 5 6 |
# File 'lib/jirametrics/board_column.rb', line 4 def raw @raw end |
#status_ids ⇒ Object (readonly)
Returns the value of attribute status_ids.
4 5 6 |
# File 'lib/jirametrics/board_column.rb', line 4 def status_ids @status_ids end |