lib/zendesk2/get_ticket.rb in zendesk2-1.9.0 vs lib/zendesk2/get_ticket.rb in zendesk2-1.10.0
- old
+ new
@@ -1,14 +1,15 @@
+# frozen_string_literal: true
class Zendesk2::GetTicket
include Zendesk2::Request
request_method :get
request_path { |r| "/tickets/#{r.ticket_id}.json" }
def ticket_id
- params.fetch("ticket").fetch("id")
+ params.fetch('ticket').fetch('id')
end
def mock
- mock_response("ticket" => self.find!(:tickets, ticket_id))
+ mock_response('ticket' => find!(:tickets, ticket_id))
end
end