Module: Vscale::Tickets
- Included in:
- Api::Client
- Defined in:
- lib/vscale/api/tickets.rb
Instance Method Summary collapse
- #ticket_comments ⇒ Object
- #tickets ⇒ Object
- #tickets_add_comment(params) ⇒ Object
- #tickets_close(id) ⇒ Object
- #tickets_new(params) ⇒ Object
Instance Method Details
#ticket_comments ⇒ Object
11 12 13 |
# File 'lib/vscale/api/tickets.rb', line 11 def ticket_comments get("tickets/#{id}/comments") end |
#tickets ⇒ Object
3 4 5 |
# File 'lib/vscale/api/tickets.rb', line 3 def tickets get('tickets') end |
#tickets_add_comment(params) ⇒ Object
15 16 17 |
# File 'lib/vscale/api/tickets.rb', line 15 def tickets_add_comment(params) post('tickets', params) end |
#tickets_close(id) ⇒ Object
19 20 21 |
# File 'lib/vscale/api/tickets.rb', line 19 def tickets_close(id) post("tickets/#{id}/close") end |
#tickets_new(params) ⇒ Object
7 8 9 |
# File 'lib/vscale/api/tickets.rb', line 7 def tickets_new(params) post('tickets', params) end |