Sha256: 95d626bf4ce2ab4265261721567b14d018e6bbc457025c06cd3d5de952e294f1

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 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

      ##
      # @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

      ##
      # @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

1 entries across 1 versions & 1 rubygems

Version Path
twilio-ruby-5.10.5 lib/twilio-ruby/rest/video.rb