Sha256: a0b9cb227063d1f309b9a5171967419633a1a39a0732435e4bb8892052114ba1
Contents?: true
Size: 857 Bytes
Versions: 6
Compression:
Stored size: 857 Bytes
Contents
# frozen_string_literal: true module Dude module ProjectManagement module Entities class Issue attr_accessor :id, :title, :description, :status, :assignee, :url def initialize(params) @id = params[:id] @title = params[:title] @description = params[:description] @status = params[:status] @assignee = params[:assignee] @url = params[:url] end def todo? [TODO_LIST_NAME, 'Unclear'].include? status end def in_progress? status == IN_PROGRESS_LIST_NAME end def ready_for_review? status == CODE_REVIEW_LIST_NAME end def testable? status == TESTING_LIST_NAME end def done? status == DONE_LIST_NAME end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems