Sha256: a829e8f054347831c6e2e0770e5cbf806853c603247b43ae7794fa29bf6b4603

Contents?: true

Size: 381 Bytes

Versions: 6

Compression:

Stored size: 381 Bytes

Contents

module Calendlyr
  class Organizations::Membership < Object
    def associated_organization
      Organization.new({"uri" => organization}.merge(client: client))
    end

    def associated_user
      client.users.retrieve(uuid: get_slug(user.uri))
    end

    def group_relationships(**params)
      client.groups.list_relationships(**params.merge(owner: uri))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
calendlyr-0.7.5 lib/calendlyr/objects/organizations/membership.rb
calendlyr-0.7.4 lib/calendlyr/objects/organizations/membership.rb
calendlyr-0.7.3 lib/calendlyr/objects/organizations/membership.rb
calendlyr-0.7.2 lib/calendlyr/objects/organizations/membership.rb
calendlyr-0.7.1 lib/calendlyr/objects/organizations/membership.rb
calendlyr-0.7.0 lib/calendlyr/objects/organizations/membership.rb