Sha256: 2821bec64ebbbfdd7fc2f3d38f584f57219e991590cc7eb414eaad51f6c8038a

Contents?: true

Size: 198 Bytes

Versions: 3

Compression:

Stored size: 198 Bytes

Contents

# frozen_string_literal: true

module Trellodon
  ChecklistItem = Struct.new("ChecklistItem", :id, :name, :state, keyword_init: true) do
    def checked?
      state == "complete"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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