class Twilio::REST::Insights

Public Class Methods

new(twilio) click to toggle source

Initialize the Insights Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/insights.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://insights.twilio.com'
18   @host = 'insights.twilio.com'
19   @port = 443
20 
21   # Versions
22   @v1 = nil
23 end

Public Instance Methods

call_summaries() click to toggle source

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

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

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

   # File lib/twilio-ruby/rest/insights.rb
35 def calls(sid=:unset)
36   self.v1.calls(sid)
37 end
rooms(room_sid=:unset) click to toggle source

@param [String] room_sid Unique identifier for the room. @return [Twilio::REST::Insights::V1::RoomInstance] if room_sid was passed. @return [Twilio::REST::Insights::V1::RoomList]

   # File lib/twilio-ruby/rest/insights.rb
49 def rooms(room_sid=:unset)
50   self.v1.rooms(room_sid)
51 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/insights.rb
55 def to_s
56   '#<Twilio::REST::Insights>'
57 end
v1() click to toggle source

Version v1 of insights

   # File lib/twilio-ruby/rest/insights.rb
27 def v1
28   @v1 ||= V1.new self
29 end