Sha256: c903522a8cd69831c18414b39d719337f4b1da8642c67b9ae709b50b81e45640

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

module Trellodon
  Board = Struct.new("Board", :id, :short_id, :name, :card_ids, :lists, :last_activity_date, keyword_init: true) do
    def get_list(list_id)
      return nil if lists.nil?
      lists.find { |list| list.id == list_id }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trellodon-0.3.0 lib/trellodon/entities/board.rb
trellodon-0.2.1 lib/trellodon/entities/board.rb
trellodon-0.2.0 lib/trellodon/entities/board.rb
trellodon-0.1.0 lib/trellodon/entities/board.rb