Sha256: 702a8f0d45c45a57d94238b7be56ac7e346a504e35431160f987da9880bd633d
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
class Zendesk2::Client::GetOrganizationMemberships < Zendesk2::Client::Request request_method :get request_path { |r| "/organizations/#{r.organization_id}/memberships.json" } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zendesk2-1.5.3 | lib/zendesk2/client/requests/get_organization_memberships.rb |