Sha256: fb4de55903ec20aef479bd39a163ff9ee5506b577aeabd13062686f6c3e80feb

Contents?: true

Size: 662 Bytes

Versions: 40

Compression:

Stored size: 662 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.data[:topic_comments].delete(id)
      response(
        :method => :delete,
        :path   => path,
        :body   => {
          "topic_comment" => body,
        },
      )
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
zendesk2-1.2.7 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.6 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.5 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.4 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.3 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.2 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.1 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.2.0 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-1.0.0 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.5.4 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.5.3 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.5.2 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.5.1 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.5.0 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.4.5 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.4.4 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.4.3 lib/zendesk2/client/requests/destroy_topic_comment.rb
zendesk2-0.4.2 lib/zendesk2/client/requests/destroy_topic_comment.rb