Sha256: 29028f96f5d52ec8278730f12cbf5d4f23406a39d82deccd397697d72923380b

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

require 'active_resource'

module RedmineRest
  module Models
    #
    # User model
    #
    class User < ActiveResource::Base
      self.format = :xml

      def issues(params = {})
        params[:assigned_to_id] = id
        Issue.all params: params
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redmine_rest-0.1.1 lib/redmine_rest/models/user.rb
redmine_rest-0.1.0 lib/redmine_rest/models/user.rb