Sha256: c5d3b5a3d5c99e75e5324a18a651fa57eddd3192e73b00e2683f0f696efe62b6

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require 'active_resource'

require_relative 'user'
require_relative 'project'
require_relative 'version'
require_relative 'collections/issue'

module RedmineRest
  module Models
    #
    # issue model
    #
    class Issue < ActiveResource::Base
      self.format = :xml
      self.collection_parser = Collections::Issue

      has_one :author, class_name: User
      has_one :assigned_to, class_name: User
      has_one :project, class_name: Project
      has_one :version, class_name: Version
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redmine_rest-0.2.0 lib/redmine_rest/models/issue.rb