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.77.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.76.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.75.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.74.5 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.74.4 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.74.3 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.74.2 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.74.1 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.74.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.73.4 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.73.2 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.73.1 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.73.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.72.1 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.72.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.71.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.70.1 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.70.0 lib/twilio-ruby/rest/media.rb
twilio-ruby-5.69.0 lib/twilio-ruby/rest/media.rb