Sha256: b90eb55e1e8d90b5f6a913d625c37e19620a4b0434a726ebbfeecfa55abdfe1a

Contents?: true

Size: 432 Bytes

Versions: 15

Compression:

Stored size: 432 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
renuo-cli-3.1.7 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.6 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.5 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.4 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.3 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.2 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.1 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.1.0 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-3.0.0 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-2.0.0 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-1.8.0 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-1.7.3 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-1.7.2 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-1.7.1 lib/renuo/cli/app/redmine/issue.rb
renuo-cli-1.7.0 lib/renuo/cli/app/redmine/issue.rb