Class: Twilio::REST::Insights::V2
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Insights::V2
show all
- Defined in:
- lib/twilio-ruby/rest/insights/v2.rb,
lib/twilio-ruby/rest/insights/v2/report.rb,
lib/twilio-ruby/rest/insights/v2/inbound.rb,
lib/twilio-ruby/rest/insights/v2/outbound.rb,
lib/twilio-ruby/rest/insights/v2/inbound_report.rb,
lib/twilio-ruby/rest/insights/v2/outbound_report.rb
Defined Under Namespace
Classes: InboundInstance, InboundList, InboundListResponse, InboundPage, InboundPageMetadata, InboundReportInstance, InboundReportList, InboundReportPage, OutboundInstance, OutboundList, OutboundListResponse, OutboundPage, OutboundPageMetadata, OutboundReportInstance, OutboundReportList, OutboundReportPage, ReportContext, ReportInstance, ReportInstanceMetadata, ReportList, ReportListResponse, ReportPage
Instance Attribute Summary
Attributes inherited from Version
#domain, #version
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #create_with_metadata, #delete, #delete_with_metadata, #exception, #fetch, #fetch_with_metadata, #page, #patch, #read_limits, #relative_uri, #request, #stream, #stream_with_metadata, #update, #update_with_metadata
Constructor Details
#initialize(domain) ⇒ V2
Initialize the V2 version of Insights
21
22
23
24
25
26
27
28
29
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 21
def initialize(domain)
super
@version = 'v2'
@inbound = nil
@inbound_reports = nil
@outbound = nil
@outbound_reports = nil
@reports = nil
end
|
Instance Method Details
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 34
def inbound(report_id=:unset)
if report_id.nil?
raise ArgumentError, 'report_id cannot be nil'
end
if report_id == :unset
@inbound ||= InboundList.new self
else
InboundList.new(self, report_id: report_id)
end
end
|
47
48
49
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 47
def inbound_reports
@inbound_reports ||= InboundReportList.new self
end
|
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 53
def outbound(report_id=:unset)
if report_id.nil?
raise ArgumentError, 'report_id cannot be nil'
end
if report_id == :unset
@outbound ||= OutboundList.new self
else
OutboundList.new(self, report_id: report_id)
end
end
|
66
67
68
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 66
def outbound_reports
@outbound_reports ||= OutboundReportList.new self
end
|
73
74
75
76
77
78
79
80
81
82
83
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 73
def reports(report_id=:unset)
if report_id.nil?
raise ArgumentError, 'report_id cannot be nil'
end
if report_id == :unset
@reports ||= ReportList.new self
else
ReportContext.new(self, report_id)
end
end
|
#to_s ⇒ Object
Provide a user friendly representation
86
87
88
|
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 86
def to_s
'<Twilio::REST::Insights::V2>';
end
|