Class: JiraCommand::Jira::List
- Defined in:
- lib/jira_command/jira/list.rb
Constant Summary collapse
- BASE_PATH =
'rest/api/2/search?'.freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from JiraCommand::Jira::Base
Instance Method Details
#list(query = {}) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/jira_command/jira/list.rb', line 16 def list(query = {}) request_url = BASE_PATH + URI.encode_www_form(query) res = @conn.get(request_url) JSON.parse(res.body) end |