Sha256: 6314fa2dbd2ad4e4c40cb3cb4adb019fba7d52e29947143a2513322d79588601

Contents?: true

Size: 1.16 KB

Versions: 9

Compression:

Stored size: 1.16 KB

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid The sid
      # @return [Twilio::REST::Insights::V1::CallInstance] if sid was passed.
      # @return [Twilio::REST::Insights::V1::CallList]
      def calls(sid=:unset)
        self.v1.calls(sid)
      end

      ##
      # @param [String] room_sid The room_sid
      # @return [Twilio::REST::Insights::V1::RoomInstance] if room_sid was passed.
      # @return [Twilio::REST::Insights::V1::RoomList]
      def rooms(room_sid=:unset)
        self.v1.rooms(room_sid)
      end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
twilio-ruby-5.48.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.47.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.46.1 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.46.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.45.1 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.45.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.44.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.43.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.42.0 lib/twilio-ruby/rest/insights.rb