Sha256: 22cd243da0756b6425cd825ef4597a89ea016d1b1c4e10f1d7f771df17a3b0b2

Contents?: true

Size: 608 Bytes

Versions: 51

Compression:

Stored size: 608 Bytes

Contents

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

      request(
        :method => :put,
        :path   => "/organizations/#{id}.json",
        :body   => {
          "organization" => params
        },
      )
    end
  end
  class Mock
    def update_organization(params={})
      id   = params.delete("id")
      body = self.data[:organizations][id].merge!(params)

      response(
        :method => :put,
        :path   => "/organizations/#{id}.json",
        :body   => {
          "organization" => body
        },
      )
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
zendesk2-1.2.0 lib/zendesk2/client/requests/update_organization.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/update_organization.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/update_organization.rb
zendesk2-1.0.0 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.5.4 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.5.3 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.5.2 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.5.1 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.5.0 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.4.5 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.4.4 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.4.3 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.4.2 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.4.1 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.4.0 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.3.2 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.3.1 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.3.0 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.2.7 lib/zendesk2/client/requests/update_organization.rb
zendesk2-0.2.6 lib/zendesk2/client/requests/update_organization.rb