class OctadeskApi::Client::TicketApi
Attributes
client[RW]
Public Class Methods
new(client)
click to toggle source
# File lib/octadesk_api/client/ticket_api.rb, line 5 def initialize(client) self.client = client end
Public Instance Methods
create(options = {})
click to toggle source
# File lib/octadesk_api/client/ticket_api.rb, line 19 def create(options = {}) response = client.post("/tickets", options) response.parsed_response end
find(id)
click to toggle source
# File lib/octadesk_api/client/ticket_api.rb, line 9 def find(id) response = client.get("/tickets/#{id}") response.parsed_response end
update(id, options = {})
click to toggle source
# File lib/octadesk_api/client/ticket_api.rb, line 24 def update(id, options = {}) response = client.put("/tickets/#{id}", options) response.parsed_response end
where(options = {})
click to toggle source
# File lib/octadesk_api/client/ticket_api.rb, line 14 def where(options = {}) response = client.post("/tickets", options) response.parsed_response end