module BacklogApiClient class Client class Issues RESOURCE_NAME = 'issues' def initialize(client) @client = client end def list(params) @client.get(RESOURCE_NAME, params) end def information(isuue_id_or_key) @client.get("#{RESOURCE_NAME}/#{isuue_id_or_key}") end def create(request) @client.post(RESOURCE_NAME, request) end def update(issue_id_or_key, request) @client.patch("#{RESOURCE_NAME}/#{issue_id_or_key}", request) end def delete(isuue_id_or_key) @client.delete("#{RESOURCE_NAME}/#{isuue_id_or_key}") end end end end