Sha256: 0e9837c0d02204c2a1e451ac60add02ecd5d4afbf7fa1fff342979d8edf8d280

Contents?: true

Size: 1.96 KB

Versions: 3

Compression:

Stored size: 1.96 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
# 
# frozen_string_literal: true

module Twilio
  module REST
    class Video < Domain
      ##
      # Initialize the Video Domain
      def initialize(twilio)
        super

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

        # Versions
        @v1 = nil
      end

      ##
      # Version v1 of video
      def v1
        @v1 ||= V1.new self
      end

      ##
      # @param [String] sid `CJxx…xx` A system-generated 34-character string that
      #   uniquely identifies this Composition.
      # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
      # @return [Twilio::REST::Video::V1::CompositionList]
      def compositions(sid=:unset)
        self.v1.compositions(sid)
      end

      ##
      # @return [Twilio::REST::Video::V1::CompositionSettingsInstance]
      def composition_settings
        self.v1.composition_settings()
      end

      ##
      # @param [String] sid `RTxx…xx` A system-generated 34-character string that
      #   uniquely identifies this Recording.
      # @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
      # @return [Twilio::REST::Video::V1::RecordingList]
      def recordings(sid=:unset)
        self.v1.recordings(sid)
      end

      ##
      # @return [Twilio::REST::Video::V1::RecordingSettingsInstance]
      def recording_settings
        self.v1.recording_settings()
      end

      ##
      # @param [String] sid A system-generated 34-character string that uniquely
      #   identifies this resource.
      # @return [Twilio::REST::Video::V1::RoomInstance] if sid was passed.
      # @return [Twilio::REST::Video::V1::RoomList]
      def rooms(sid=:unset)
        self.v1.rooms(sid)
      end

      ##
      # Provide a user friendly representation
      def to_s
        '#<Twilio::REST::Video>'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twilio-ruby-5.12.2 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.11.2 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.10.7 lib/twilio-ruby/rest/video.rb