Sha256: 5aa91e15c01105c8f9c5d183eaccf02a9d56e153862fa137b255018b569d16d6
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
module GrooveHQ class Client module Tickets def tickets_count(options = {}) get("/tickets/count", options) end def create_ticket(options) post("/tickets", options) end def ticket(ticket_number) get("/tickets/#{ticket_number}") end def tickets(options = {}) get("/tickets", options) end def ticket_state(ticket_number) get("/tickets/#{ticket_number}/state") end def update_ticket_state(ticket_number, state) put("/tickets/#{ticket_number}/state", state: state) end def ticket_assignee(ticket_number) get("/tickets/#{ticket_number}/assignee") end def update_ticket_assignee(ticket_number, assignee) put("/tickets/#{ticket_number}/assignee", assignee: assignee) end def update_ticket_priority(ticket_number, priority) put("/tickets/#{ticket_number}/priority", priority: priority) end def update_ticket_assigned_group(ticket_number, assigned_group) put("/tickets/#{ticket_number}/assigned_group", assigned_group: assigned_group) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
groovehq-1.0.4 | lib/groovehq/client/tickets.rb |
groovehq-1.0.3 | lib/groovehq/client/tickets.rb |