class Twilio::REST::Insights::V1

Public Class Methods

new(domain) click to toggle source

Initialize the V1 version of Insights

Calls superclass method Twilio::REST::Version::new
   # File lib/twilio-ruby/rest/insights/v1.rb
15 def initialize(domain)
16   super
17   @version = 'v1'
18   @calls = nil
19   @call_summaries = nil
20   @rooms = nil
21 end

Public Instance Methods

call_summaries() click to toggle source

@return [Twilio::REST::Insights::V1::CallSummariesContext]

   # File lib/twilio-ruby/rest/insights/v1.rb
40 def call_summaries
41   @call_summaries ||= CallSummariesList.new self
42 end
calls(sid=:unset) click to toggle source

@param [String] sid The sid @return [Twilio::REST::Insights::V1::CallContext] if sid was passed. @return [Twilio::REST::Insights::V1::CallList]

   # File lib/twilio-ruby/rest/insights/v1.rb
27 def calls(sid=:unset)
28   if sid.nil?
29       raise ArgumentError, 'sid cannot be nil'
30   end
31   if sid == :unset
32       @calls ||= CallList.new self
33   else
34       CallContext.new(self, sid)
35   end
36 end
rooms(room_sid=:unset) click to toggle source

@param [String] room_sid The SID of the Room resource. @return [Twilio::REST::Insights::V1::RoomContext] if room_sid was passed. @return [Twilio::REST::Insights::V1::RoomList]

   # File lib/twilio-ruby/rest/insights/v1.rb
48 def rooms(room_sid=:unset)
49   if room_sid.nil?
50       raise ArgumentError, 'room_sid cannot be nil'
51   end
52   if room_sid == :unset
53       @rooms ||= RoomList.new self
54   else
55       RoomContext.new(self, room_sid)
56   end
57 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/insights/v1.rb
61 def to_s
62   '<Twilio::REST::Insights::V1>'
63 end