Sha256: 5d4e7fb379e2f955bca0f02496780d346a53292b905bbbfb0084ea01ede56abd

Contents?: true

Size: 469 Bytes

Versions: 26

Compression:

Stored size: 469 Bytes

Contents

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

      request(
        :method => :get,
        :path   => "/organizations/#{id}.json"
      )
    end
  end # Real

  class Mock
    def get_organization(params={})
      id = params["id"]

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
zendesk2-0.5.4 lib/zendesk2/client/requests/get_organization.rb
zendesk2-0.5.3 lib/zendesk2/client/requests/get_organization.rb
zendesk2-0.5.2 lib/zendesk2/client/requests/get_organization.rb
zendesk2-0.5.1 lib/zendesk2/client/requests/get_organization.rb
zendesk2-0.5.0 lib/zendesk2/client/requests/get_organization.rb
zendesk2-0.4.5 lib/zendesk2/client/requests/get_organization.rb