Sha256: dc6f3498e7ae62e2641439792878ebf24e1ccfa73f3e594ddddb285f898a7d15

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

module Calendly
  class User < Object
    def organization
      @organization ||= Organization.new({"uri" => current_organization}.merge(client: client))
    end

    def event_types(**params)
      client.event_types.list user_uri: uri, organization_uri: current_organization, **params
    end

    def events(**params)
      client.events.list user_uri: uri, organization_uri: current_organization, **params
    end

    def memberships(organization_uri: nil, **params)
      client.organizations.list_memberships user_uri: uri, organization_uri: organization_uri, **params
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calendlyr-0.3.3 lib/calendly/objects/users.rb