Sha256: ffa206a8244280541de7ad5ef87d1d88abd753b0e02953491631d0ab9f8a9b9b

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

module Calendlyr
  class EventResource < Resource
    def list(user_uri:, organization_uri:, **params)
      response = get_request("scheduled_events", params: {user: user_uri, organization: organization_uri}.merge(params).compact)
      Collection.from_response(response, key: "collection", type: Event, client: client)
    end

    def retrieve(event_uuid:)
      Event.new get_request("scheduled_events/#{event_uuid}").dig("resource").merge(client: client)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
calendlyr-0.6.0 lib/calendlyr/resources/events.rb
calendlyr-0.5.0 lib/calendlyr/resources/events.rb
calendlyr-0.4.0 lib/calendlyr/resources/events.rb
calendlyr-0.3.6 lib/calendlyr/resources/events.rb
calendlyr-0.3.5 lib/calendlyr/resources/events.rb