Sha256: d87ba40a2ae538e5ddfadf957f12ae93b51e7909db5e50f026d21f288fbbca8a

Contents?: true

Size: 994 Bytes

Versions: 5

Compression:

Stored size: 994 Bytes

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid The unique string that that we created to identify the
      #   Content resource.
      # @return [Twilio::REST::Content::V1::ContentInstance] if sid was passed.
      # @return [Twilio::REST::Content::V1::ContentList]
      def contents(sid=:unset)
        self.v1.contents(sid)
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.74.2 lib/twilio-ruby/rest/content.rb
twilio-ruby-5.74.1 lib/twilio-ruby/rest/content.rb
twilio-ruby-5.74.0 lib/twilio-ruby/rest/content.rb
twilio-ruby-5.73.4 lib/twilio-ruby/rest/content.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/content.rb