Sha256: c171eb92792f49583386bb2e8fb5c421e5d74c99b09b679dfe1e05dbd5eda54a

Contents?: true

Size: 1.16 KB

Versions: 31

Compression:

Stored size: 1.16 KB

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid A 34 character string that uniquely identifies this
      #   resource.
      # @return [Twilio::REST::Conversations::V1::ConversationInstance] if sid was passed.
      # @return [Twilio::REST::Conversations::V1::ConversationList]
      def conversations(sid=:unset)
        self.v1.conversations(sid)
      end

      ##
      # @return [Twilio::REST::Conversations::V1::WebhookInstance]
      def webhooks
        self.v1.webhooks()
      end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
twilio-ruby-5.40.1 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.40.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.39.3 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.39.2 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.39.1 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.39.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.38.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.37.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.36.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.35.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.34.1 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.34.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.33.1 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.33.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.32.0 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.31.6 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.31.5 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.31.4 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.31.3 lib/twilio-ruby/rest/conversations.rb
twilio-ruby-5.31.2 lib/twilio-ruby/rest/conversations.rb