Class: BoardColumn

Inherits:
Object show all
Defined in:
lib/jirametrics/board_column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#maxObject (readonly)

Returns the value of attribute max.



4
5
6
# File 'lib/jirametrics/board_column.rb', line 4

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



4
5
6
# File 'lib/jirametrics/board_column.rb', line 4

def min
  @min
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/jirametrics/board_column.rb', line 5

def name
  @name
end

#rawObject (readonly)

Returns the value of attribute raw.



4
5
6
# File 'lib/jirametrics/board_column.rb', line 4

def raw
  @raw
end

#status_idsObject (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