Sha256: 39ccb2951513c4581803f7a812edba802599e071dc44164c969916136bc0294a
Contents?: true
Size: 610 Bytes
Versions: 26
Compression:
Stored size: 610 Bytes
Contents
class Zendesk2::Client class Real def get_organization_memberships(params={}) organization_id = params["organization_id"] request( :method => :get, :path => "/organizations/#{organization_id}/memberships.json", ) end end # Real class Mock def get_organization_memberships(params={}) organization_id = params["organization_id"] resources(:memberships, "/organizations/#{organization_id}/memberships.json", "organization_memberships", filter: lambda { |c| c.select { |m| m["organization_id"] == organization_id } }) end end # Mock end
Version data entries
26 entries across 26 versions & 1 rubygems