Sha256: 862e13a65882653a1ff82ff47d3797fb80d1ac9a75fc973ee34927b4104e690a

Contents?: true

Size: 501 Bytes

Versions: 9

Compression:

Stored size: 501 Bytes

Contents

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

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

  class Mock
    def destroy_forum(params={})
      id   = params["id"]
      path = "/forums/#{id}.json"

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

      response(
        :method => :delete,
        :path   => path,
        :body   => {
          "forum" => 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_forum.rb
zendesk2-1.4.1 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.4.0 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.3.3 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.3.2 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.3.1 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/destroy_forum.rb
zendesk2-1.2.9 lib/zendesk2/client/requests/destroy_forum.rb