Sha256: a1893b4a22a6f2f2fa9b9e6ba737a4dea712e07a2f5bd70cd734df8c1949838a

Contents?: true

Size: 958 Bytes

Versions: 12

Compression:

Stored size: 958 Bytes

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] call_sid The call_sid
      # @return [Twilio::REST::Insights::V1::CallSummaryInstance] if call_sid was passed.
      # @return [Twilio::REST::Insights::V1::CallSummaryList]
      def summary(call_sid=:unset)
        self.v1.summary(call_sid)
      end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
twilio-ruby-5.29.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.28.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.27.1 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.27.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.26.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.25.4 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.25.3 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.25.2 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.25.1 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.25.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.24.0 lib/twilio-ruby/rest/insights.rb
twilio-ruby-5.23.1 lib/twilio-ruby/rest/insights.rb