Class: RedmineRest::Models::Relation
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- RedmineRest::Models::Relation
- Defined in:
- lib/redmine_rest/models/relation.rb
Overview
Model of issue relations
Constant Summary collapse
- TYPES =
%w(relates duplicates duplicated blocks blocked precedes follows copied_to copied_from).freeze
Class Method Summary collapse
-
.element_path(id, _prefix_options = {}, query_options = nil) ⇒ Object
Overrides parent method.
Methods inherited from ActiveResource::Base
Class Method Details
.element_path(id, _prefix_options = {}, query_options = nil) ⇒ Object
Overrides parent method. When we want to fetch one relation, we need not to use prefix
22 23 24 |
# File 'lib/redmine_rest/models/relation.rb', line 22 def self.element_path(id, = {}, = nil) "/relations/#{URI.parser.escape id.to_s}#{format_extension}#{query_string()}" end |