Class: Twilio::REST::Video

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/video.rb,
lib/twilio-ruby/rest/video/v1.rb,
lib/twilio-ruby/rest/video/v1/room.rb,
lib/twilio-ruby/rest/video/v1/recording.rb,
lib/twilio-ruby/rest/video/v1/composition.rb,
lib/twilio-ruby/rest/video/v1/room/recording.rb,
lib/twilio-ruby/rest/video/v1/composition_hook.rb,
lib/twilio-ruby/rest/video/v1/recording_settings.rb,
lib/twilio-ruby/rest/video/v1/composition_settings.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant.rb,
lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb,
lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Video

Initialize the Video Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/video.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://video.twilio.com'
  @host = 'video.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#composition_hooks(sid = :unset) ⇒ Twilio::REST::Video::V1::CompositionHookInstance, Twilio::REST::Video::V1::CompositionHookList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the CompositionHook resource.

Returns:


45
46
47
# File 'lib/twilio-ruby/rest/video.rb', line 45

def composition_hooks(sid=:unset)
  self.v1.composition_hooks(sid)
end

#composition_settingsTwilio::REST::Video::V1::CompositionSettingsInstance


51
52
53
# File 'lib/twilio-ruby/rest/video.rb', line 51

def composition_settings
  self.v1.composition_settings()
end

#compositions(sid = :unset) ⇒ Twilio::REST::Video::V1::CompositionInstance, Twilio::REST::Video::V1::CompositionList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Composition resource.

Returns:


36
37
38
# File 'lib/twilio-ruby/rest/video.rb', line 36

def compositions(sid=:unset)
  self.v1.compositions(sid)
end

#recording_settingsTwilio::REST::Video::V1::RecordingSettingsInstance


66
67
68
# File 'lib/twilio-ruby/rest/video.rb', line 66

def recording_settings
  self.v1.recording_settings()
end

#recordings(sid = :unset) ⇒ Twilio::REST::Video::V1::RecordingInstance, Twilio::REST::Video::V1::RecordingList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Recording resource.

Returns:


60
61
62
# File 'lib/twilio-ruby/rest/video.rb', line 60

def recordings(sid=:unset)
  self.v1.recordings(sid)
end

#rooms(sid = :unset) ⇒ Twilio::REST::Video::V1::RoomInstance, Twilio::REST::Video::V1::RoomList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Room resource.

Returns:


75
76
77
# File 'lib/twilio-ruby/rest/video.rb', line 75

def rooms(sid=:unset)
  self.v1.rooms(sid)
end

#to_sObject

Provide a user friendly representation


81
82
83
# File 'lib/twilio-ruby/rest/video.rb', line 81

def to_s
  '#<Twilio::REST::Video>'
end

#v1Object

Version v1 of video


27
28
29
# File 'lib/twilio-ruby/rest/video.rb', line 27

def v1
  @v1 ||= V1.new self
end