class JiraCommand::Jira::Project

Constants

BASE_PATH

Public Instance Methods

list() click to toggle source
# File lib/jira_command/jira/project.rb, line 11
def list
  res = @conn.get(BASE_PATH)
  body = JSON.parse(res.body)

  body.map { |item| { name: item['name'], id: item['id'], key: item['key'] } }
end