lib/zendesk2/get_view.rb in zendesk2-1.9.0 vs lib/zendesk2/get_view.rb in zendesk2-1.10.0

- old
+ new

@@ -1,14 +1,15 @@ +# frozen_string_literal: true class Zendesk2::GetView include Zendesk2::Request request_method :get request_path { |r| "/views/#{r.view_id}.json" } def view_id - params.fetch("view").fetch("id") + params.fetch('view').fetch('id') end def mock - mock_response("view" => self.find!(:views, view_id)) + mock_response('view' => find!(:views, view_id)) end end