Sha256: d6d3798b17b517767ee54a3ad0fe59c72e51e1f29b4c6d619988207cb1dba082

Contents?: true

Size: 659 Bytes

Versions: 9

Compression:

Stored size: 659 Bytes

Contents

class Zendesk2::Client
  class Real
    def destroy_topic_comment(params={})
      id       = params["id"]
      topic_id = params["topic_id"]

      request(
        :method => :delete,
        :path => "/topics/#{topic_id}/comments/#{id}.json"
      )
    end
  end

  class Mock
    def destroy_topic_comment(params={})
      id       = params["id"]
      topic_id = params["topic_id"]
      path     = "/topics/#{topic_id}/comments/#{id}.json"

      body = self.delete!(:topic_comments, id)

      response(
        :method => :delete,
        :path   => path,
        :body   => {
          "topic_comment" => body,
        },
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
zendesk2-1.4.2 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.4.1 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.4.0 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.3.3 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.3.2 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.3.1 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.9 lib/zendesk2/client/requests/destroy_topic_comment.rb