Class: Cloudflare::RealtimeKit::Preset

Inherits:
Cloudflare::Resource show all
Defined in:
lib/cloudflare/realtime_kit/preset.rb

Overview

A reusable participant configuration. Presets bundle UI options, capabilities (audio/video/chat permissions), and behavior — useful for setting up host vs viewer roles once and assigning by name when creating participants.

preset = Preset.create(
  app_id: "app-1",
  name: "host_preset",
  config: { ... },
  ui:     { ... },
  permissions: { ... }
)
preset.update(permissions: { ... })
preset.destroy

Constant Summary

Constants inherited from Cloudflare::Resource

Cloudflare::Resource::ENVELOPE_KEYS

Instance Attribute Summary

Attributes inherited from Cloudflare::Resource

#scope

Method Summary

Methods inherited from Cloudflare::Resource

#==, #[], all, attribute, attributes, #attributes, collection_path, configured_api_token, create, #destroy, find, has_many, has_one, #hash, #id, #initialize, member_path, read_only, read_only?, #reload, request, scope_params, scope_required, #set_attrs_from_response, #to_h, to_wire_keys, unwrap_envelope, #update, wire_kwarg, wire_name_for_request, wire_name_for_response

Constructor Details

This class inherits a constructor from Cloudflare::Resource