Class: Twilio::REST::Insights::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Insights::V1
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
47
48
49
|
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 47
def call_summaries
@call_summaries ||= CallSummariesList.new self
end
|
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
|
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
|
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
|
#settings ⇒ 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_s ⇒ Object
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
|