Sha256: e4e684bbc2c7dd0da65ed1d3b519f6a01ce41a5b0167bac14d2da5c7f253ec5a

Contents?: true

Size: 579 Bytes

Versions: 9

Compression:

Stored size: 579 Bytes

Contents

class Zendesk2::Client
  class Real
    def update_forum(params={})
      id = params.delete("id")

      request(
        :method => :put,
        :path   => "/forums/#{id}.json",
        :body   => {
          "forum" => params
        },
      )
    end
  end
  class Mock
    def update_forum(params={})
      id   = params.delete("id")
      path = "/forums/#{id}.json"

      body = self.find!(:forums, id).merge!(params)

      response(
        :method => :put,
        :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/update_forum.rb
zendesk2-1.4.1 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.4.0 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.3.3 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.3.2 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.3.1 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/update_forum.rb
zendesk2-1.2.9 lib/zendesk2/client/requests/update_forum.rb