Sha256: e62cf58fd83d1565547edc1261116cc4e1c3c41794dd523697e33187955d02a4

Contents?: true

Size: 555 Bytes

Versions: 26

Compression:

Stored size: 555 Bytes

Contents

class Zendesk2::Client
  class Real
    def update_group(params={})
      id   = params.delete("id")
      path = "/groups/#{id}.json"

      request(
        :method => :put,
        :path   => path,
        :body   => {
          "group" => params
        },
      )
    end
  end
  class Mock
    def update_group(params={})
      id = params.delete("id")

      response(
        :method => :put,
        :path   => "/groups/#{id}.json",
        :body   => {
          "group" => find!(:groups, id).merge!(params)
        },
      )
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
zendesk2-1.4.2 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.4.1 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.4.0 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.3.3 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.3.2 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.3.1 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.9 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.7 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.6 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.5 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.4 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.3 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.2 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.1 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.2.0 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/update_group.rb
zendesk2-1.0.0 lib/zendesk2/client/requests/update_group.rb