Class: Twilio::REST::Insights

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/insights.rb,
lib/twilio-ruby/rest/insights/v1.rb,
lib/twilio-ruby/rest/insights/v1/call.rb,
lib/twilio-ruby/rest/insights/v1/room.rb,
lib/twilio-ruby/rest/insights/v1/setting.rb,
lib/twilio-ruby/rest/insights/v1/annotation.rb,
lib/twilio-ruby/rest/insights/v1/call/event.rb,
lib/twilio-ruby/rest/insights/v1/conference.rb,
lib/twilio-ruby/rest/insights/v1/call/metric.rb,
lib/twilio-ruby/rest/insights/v1/call/summary.rb,
lib/twilio-ruby/rest/insights/v1/call_summaries.rb,
lib/twilio-ruby/rest/insights/v1/room/participant.rb,
lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Insights

Initialize the Insights Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/insights.rb', line 14

def initialize(twilio)
  super

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

  # Versions
  @v1 = nil
end

Instance Method Details

#annotation(call_sid = :unset) ⇒ Twilio::REST::Insights::V1::AnnotationInstance, Twilio::REST::Insights::V1::AnnotationList

Parameters:

  • call_sid (String) (defaults to: :unset)

    The call_sid

Returns:


41
42
43
# File 'lib/twilio-ruby/rest/insights.rb', line 41

def annotation(call_sid=:unset)
  self.v1.annotation(call_sid)
end

#call_summariesTwilio::REST::Insights::V1::CallSummariesInstance


55
56
57
# File 'lib/twilio-ruby/rest/insights.rb', line 55

def call_summaries
  self.v1.call_summaries()
end

#calls(sid = :unset) ⇒ Twilio::REST::Insights::V1::CallInstance, Twilio::REST::Insights::V1::CallList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:


49
50
51
# File 'lib/twilio-ruby/rest/insights.rb', line 49

def calls(sid=:unset)
  self.v1.calls(sid)
end

#conferences(conference_sid = :unset) ⇒ Twilio::REST::Insights::V1::ConferenceInstance, Twilio::REST::Insights::V1::ConferenceList

Parameters:

  • conference_sid (String) (defaults to: :unset)

    The unique SID identifier of the Conference.

Returns:


63
64
65
# File 'lib/twilio-ruby/rest/insights.rb', line 63

def conferences(conference_sid=:unset)
  self.v1.conferences(conference_sid)
end

#rooms(room_sid = :unset) ⇒ Twilio::REST::Insights::V1::RoomInstance, Twilio::REST::Insights::V1::RoomList

Parameters:

  • room_sid (String) (defaults to: :unset)

    Unique identifier for the room.

Returns:


71
72
73
# File 'lib/twilio-ruby/rest/insights.rb', line 71

def rooms(room_sid=:unset)
  self.v1.rooms(room_sid)
end

#settingsTwilio::REST::Insights::V1::SettingInstance


33
34
35
# File 'lib/twilio-ruby/rest/insights.rb', line 33

def settings
  self.v1.settings()
end

#to_sObject

Provide a user friendly representation


77
78
79
# File 'lib/twilio-ruby/rest/insights.rb', line 77

def to_s
  '#<Twilio::REST::Insights>'
end

#v1Object

Version v1 of insights


27
28
29
# File 'lib/twilio-ruby/rest/insights.rb', line 27

def v1
  @v1 ||= V1.new self
end