Sha256: 4f0981b75e378a9ab05a56cada65725846f80b676d24375328fce1452307e386

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

require 'active_resource'

module Redmine
  class Issue < ActiveResource::Base
    STATUSES = {
      to_start: 9,
      planned: 15,
      in_progress: 2,
      qa: 12
    }.freeze

    self.site = 'https://redmine.renuo.ch'
    self.include_root_in_json = true

    def self.headers
      { 'X-Redmine-API-Key' => RenuoCliConfig.redmine_api_key }
    end

    def html_url
      "#{self.class.site}issues/#{id}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
renuo-cli-4.5.0 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-4.3.0 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-4.2.1 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-4.2.0 lib/renuo/cli/app/redmine/issue.rb