Sha256: e51562796d8e1e6150e1e464805804a5e423cadccb26fa87fed71f08786b7385

Contents?: true

Size: 1.35 KB

Versions: 8

Compression:

Stored size: 1.35 KB

Contents

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

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

8 entries across 8 versions & 1 rubygems

Version Path
twilio-ruby-5.8.1 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.8.0 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.7.2 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.7.1 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.7.0 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.6.4 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.6.3 lib/twilio-ruby/rest/video.rb
twilio-ruby-5.6.2 lib/twilio-ruby/rest/video.rb