Sha256: cfa9a685c7c86a704179e712f9d9dbb6334202dd46425834d4c20cfd80ccfd24

Contents?: true

Size: 336 Bytes

Versions: 6

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true
class Zendesk2::DestroyHelpCenterTopic
  include Zendesk2::Request

  request_path { |r| "/community/topics/#{r.topic_id}.json" }
  request_method :delete

  def topic_id
    params.fetch('topic').fetch('id')
  end

  def mock
    mock_response('topic' => delete!(:help_center_topics, topic_id))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/help_center/destroy_help_center_topic.rb
zendesk2-1.13.1 lib/zendesk2/help_center/destroy_help_center_topic.rb
zendesk2-1.13.0 lib/zendesk2/help_center/destroy_help_center_topic.rb
zendesk2-1.12.0 lib/zendesk2/help_center/destroy_help_center_topic.rb
zendesk2-1.11.0 lib/zendesk2/help_center/destroy_help_center_topic.rb
zendesk2-1.10.0 lib/zendesk2/help_center/destroy_help_center_topic.rb