Sha256: bd66d8fddfb99d5d4b4e89c4e607ff4845fba9d4fa6aa74d64d9cd8c45823a91
Contents?: true
Size: 333 Bytes
Versions: 21
Compression:
Stored size: 333 Bytes
Contents
class Zendesk2::Client::GetOrganization < Zendesk2::Client::Request request_method :get request_path { |r| "/organizations/#{r.organization_id}.json" } def organization_id params.fetch("organization").fetch("id").to_i end def mock mock_response("organization" => find!(:organizations, organization_id)) end end
Version data entries
21 entries across 21 versions & 1 rubygems