Class: EgovUtils::Redmine::Issue
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- EgovUtils::Redmine::Issue
- Defined in:
- lib/egov_utils/redmine/issue.rb
Class Method Summary collapse
- .collection_path(prefix_options = {}, query_options = nil) ⇒ Object
- .instantiate_collection(collection, original_params = {}, prefix_options = {}) ⇒ Object
Class Method Details
.collection_path(prefix_options = {}, query_options = nil) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/egov_utils/redmine/issue.rb', line 20 def self.collection_path( = {},=nil) super [:query_id] ||= EgovUtils::Redmine.config['query_id'] if EgovUtils::Redmine.config['query_id'] [:project_id] ||= EgovUtils::Redmine.config['project_id'] "/projects/#{[:project_id]}/#{collection_name}.#{format.extension}#{query_string()}" end |
.instantiate_collection(collection, original_params = {}, prefix_options = {}) ⇒ Object
27 28 29 30 |
# File 'lib/egov_utils/redmine/issue.rb', line 27 def self.instantiate_collection(collection, original_params = {}, = {}) collection = collection[collection_name] if collection[collection_name].is_a?(Array) super(collection, original_params, ) end |