Sha256: 0847ac1c09ad99b21da5d2d237c13044b499f016fc7002f265151320c148effe

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

class Zendesk2::Client::DestroyView < Zendesk2::Client::Request
  request_method :delete
  request_path { |r| "/views/#{r.view_id}.json" }

  def view_id
    @_view_id ||= params.fetch("view").fetch("id")
  end

  def mock
    self.delete!(:views, view_id)

    mock_response(nil)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zendesk2-1.7.5 lib/zendesk2/client/requests/destroy_view.rb
zendesk2-1.7.4 lib/zendesk2/client/requests/destroy_view.rb
zendesk2-1.7.2 lib/zendesk2/client/requests/destroy_view.rb
zendesk2-1.7.1 lib/zendesk2/client/requests/destroy_view.rb
zendesk2-1.7.0 lib/zendesk2/client/requests/destroy_view.rb