Sha256: 36e08b0fafc38741715f22382593c8473965462f539723a2ee43120f1f86798e

Contents?: true

Size: 1.66 KB

Versions: 29

Compression:

Stored size: 1.66 KB

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid The unique string generated to identify the MediaProcessor
      #   resource.
      # @return [Twilio::REST::Media::V1::MediaProcessorInstance] if sid was passed.
      # @return [Twilio::REST::Media::V1::MediaProcessorList]
      def media_processor(sid=:unset)
        self.v1.media_processor(sid)
      end

      ##
      # @param [String] sid The unique string generated to identify the MediaRecording
      #   resource.
      # @return [Twilio::REST::Media::V1::MediaRecordingInstance] if sid was passed.
      # @return [Twilio::REST::Media::V1::MediaRecordingList]
      def media_recording(sid=:unset)
        self.v1.media_recording(sid)
      end

      ##
      # @param [String] sid The unique string generated to identify the PlayerStreamer
      #   resource.
      # @return [Twilio::REST::Media::V1::PlayerStreamerInstance] if sid was passed.
      # @return [Twilio::REST::Media::V1::PlayerStreamerList]
      def player_streamer(sid=:unset)
        self.v1.player_streamer(sid)
      end

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
twilio-ruby-5.68.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.67.3 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.67.2 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.67.1 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.67.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.66.2 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.66.1 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.66.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.65.1 lib/twilio-ruby/rest/media.rb