Class: Twilio::REST::Insights::V1

Inherits:
Version
  • Object
show all
Defined in:
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/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_summaries.rb,
lib/twilio-ruby/rest/insights/v1/call/annotation.rb,
lib/twilio-ruby/rest/insights/v1/room/participant.rb,
lib/twilio-ruby/rest/insights/v1/call/call_summary.rb,
lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb

Defined Under Namespace

Classes: CallContext, CallInstance, CallList, CallPage, CallSummariesInstance, CallSummariesList, CallSummariesPage, ConferenceContext, ConferenceInstance, ConferenceList, ConferencePage, RoomContext, RoomInstance, RoomList, RoomPage, SettingContext, SettingInstance, SettingList, SettingPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V1

Initialize the V1 version of Insights



21
22
23
24
25
26
27
28
29
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 21

def initialize(domain)
    super
    @version = 'v1'
    @calls = nil
    @call_summaries = nil
    @conferences = nil
    @rooms = nil
    @settings = nil
end

Instance Method Details

#call_summariesTwilio::REST::Insights::V1::CallSummariesList



47
48
49
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 47

def call_summaries
    @call_summaries ||= CallSummariesList.new self
end

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

Parameters:

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

Returns:



35
36
37
38
39
40
41
42
43
44
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 35

def calls(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @calls ||= CallList.new self
    else
        CallContext.new(self, sid)
    end
end

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

Parameters:

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

    The unique SID identifier of the Conference.

Returns:



54
55
56
57
58
59
60
61
62
63
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 54

def conferences(conference_sid=:unset)
    if conference_sid.nil?
        raise ArgumentError, 'conference_sid cannot be nil'
    end
    if conference_sid == :unset
        @conferences ||= ConferenceList.new self
    else
        ConferenceContext.new(self, conference_sid)
    end
end

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

Parameters:

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

    The SID of the Room resource.

Returns:



68
69
70
71
72
73
74
75
76
77
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 68

def rooms(room_sid=:unset)
    if room_sid.nil?
        raise ArgumentError, 'room_sid cannot be nil'
    end
    if room_sid == :unset
        @rooms ||= RoomList.new self
    else
        RoomContext.new(self, room_sid)
    end
end

#settingsTwilio::REST::Insights::V1::settingsContext

Returns:

  • (Twilio::REST::Insights::V1::settingsContext)


80
81
82
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 80

def settings
    @settings ||= SettingContext.new self
end

#to_sObject

Provide a user friendly representation



85
86
87
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 85

def to_s
    '<Twilio::REST::Insights::V1>';
end