Class: Youtrack::Resources::Projects
- Defined in:
- lib/youtrack/resources/projects.rb
Constant Summary collapse
- PATHS =
OpenStruct.new( projects: '/admin/projects', project: '/admin/projects/%{id}', )
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#delete_resource, descendants, #deserialize_response, #get_resource_with_fields, #initialize, #post_resource_with_fields, #prepare_payload, #query_params_for_fields
Constructor Details
This class inherits a constructor from Youtrack::Resources::Base
Instance Method Details
#all(params = {}) ⇒ Object
9 10 11 |
# File 'lib/youtrack/resources/projects.rb', line 9 def all(params = {}) get_resource_with_fields(model.minimal_fields, PATHS.projects, params: params) end |
#by_id(id) ⇒ Object
13 14 15 |
# File 'lib/youtrack/resources/projects.rb', line 13 def by_id(id) get_resource_with_fields(model.all_fields, PATHS.project % { id: id }) end |