Class: Twilio::REST::Insights::V2
- 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
Defined Under Namespace
Classes: InboundContext, InboundInstance, InboundInstanceMetadata, InboundList, InboundListResponse, InboundPage, InboundPageMetadata, OutboundContext, OutboundInstance, OutboundInstanceMetadata, OutboundList, OutboundListResponse, OutboundPage, OutboundPageMetadata, ReportContext, ReportInstance, ReportInstanceMetadata, ReportList, ReportListResponse, ReportPage, ReportPageMetadata
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #inbound(report_id = :unset) ⇒ Twilio::REST::Insights::V2::InboundContext, Twilio::REST::Insights::V2::InboundList
-
#initialize(domain) ⇒ V2
constructor
Initialize the V2 version of Insights.
- #outbound(report_id = :unset) ⇒ Twilio::REST::Insights::V2::OutboundContext, Twilio::REST::Insights::V2::OutboundList
- #reports(report_id = :unset) ⇒ Twilio::REST::Insights::V2::ReportContext, Twilio::REST::Insights::V2::ReportList
-
#to_s ⇒ Object
Provide a user friendly representation.
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 |
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 21 def initialize(domain) super @version = 'v2' @inbound = nil @outbound = nil @reports = nil end |
Instance Method Details
#inbound(report_id = :unset) ⇒ Twilio::REST::Insights::V2::InboundContext, Twilio::REST::Insights::V2::InboundList
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 33 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 InboundContext.new(self, report_id) end end |
#outbound(report_id = :unset) ⇒ Twilio::REST::Insights::V2::OutboundContext, Twilio::REST::Insights::V2::OutboundList
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 47 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 OutboundContext.new(self, report_id) end end |
#reports(report_id = :unset) ⇒ Twilio::REST::Insights::V2::ReportContext, Twilio::REST::Insights::V2::ReportList
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 61 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
73 74 75 |
# File 'lib/twilio-ruby/rest/insights/v2.rb', line 73 def to_s '<Twilio::REST::Insights::V2>'; end |