Sha256: ef0b386537b38181f4f7bd0f060905c0bdbc00c37148aeff1adbfa63e3e089f4

Contents?: true

Size: 851 Bytes

Versions: 6

Compression:

Stored size: 851 Bytes

Contents

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

    def availability_schedules(**params)
      client.availability.list_user_schedules(**params.merge(user: uri))
    end

    def event_types(**params)
      client.event_types.list(**params.merge(user: uri))
    end

    def events(**params)
      client.events.list(**params.merge(user: uri, organization: current_organization))
    end

    def membership(uuid:)
      organization.membership(uuid: uuid)
    end

    def memberships(**params)
      organization.memberships(**params.merge(user: uri))
    end

    def busy_times(start_time:, end_time:, **params)
      client.availability.list_user_busy_times(**params.merge(user: uri, start_time: start_time, end_time: end_time))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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