Sha256: 76f0eb1ddee11e0bba96c9f80daf2ec7a9c0186f88864064d813ffbc95817de9

Contents?: true

Size: 1.03 KB

Versions: 12

Compression:

Stored size: 1.03 KB

Contents

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

module Twilio
  module REST
    class Insights
      class V1 < Version
        ##
        # Initialize the V1 version of Insights
        def initialize(domain)
          super
          @version = 'v1'
          @summary = nil
        end

        ##
        # @param [String] call_sid The call_sid
        # @return [Twilio::REST::Insights::V1::CallSummaryContext] if call_sid was passed.
        # @return [Twilio::REST::Insights::V1::CallSummaryList]
        def summary(call_sid=:unset)
          if call_sid.nil?
            raise ArgumentError, 'call_sid cannot be nil'
          elsif call_sid == :unset
            @summary ||= CallSummaryList.new self
          else
            CallSummaryContext.new(self, call_sid)
          end
        end

        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::Insights::V1>'
        end
      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/v1.rb
twilio-ruby-5.28.0 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.27.1 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.27.0 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.26.0 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.25.4 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.25.3 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.25.2 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.25.1 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.25.0 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.24.0 lib/twilio-ruby/rest/insights/v1.rb
twilio-ruby-5.23.1 lib/twilio-ruby/rest/insights/v1.rb