Sha256: db486f9e8487b8baa91babecf3dc731376678bff59fcfa3a46f00ced0448a98d

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

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

      ##
      # @return [Twilio::REST::Content::V1::ContentAndApprovalsInstance]
      def content_and_approvals
        self.v1.content_and_approvals()
      end

      ##
      # @return [Twilio::REST::Content::V1::LegacyContentInstance]
      def legacy_contents
        self.v1.legacy_contents()
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twilio-ruby-5.77.0 lib/twilio-ruby/rest/content.rb
twilio-ruby-5.76.0 lib/twilio-ruby/rest/content.rb
twilio-ruby-5.75.0 lib/twilio-ruby/rest/content.rb