Sha256: a1549a99199ec4da4dd416cf550d5a6209b7b2b6136e10de84d22cf67bae84bc
Contents?: true
Size: 486 Bytes
Versions: 7
Compression:
Stored size: 486 Bytes
Contents
class Zendesk2::Client::GetOrganizationMemberships < Zendesk2::Client::Request request_method :get request_path { |r| "/organizations/#{r.organization_id}/organization_memberships.json" } page_params! def organization_id params.fetch("membership").fetch("organization_id").to_i end def mock memberships = self.data[:memberships].values.select { |m| m["organization_id"] == organization_id } resources(memberships, root: "organization_memberships") end end
Version data entries
7 entries across 7 versions & 1 rubygems