Class: Twilio::REST::Insights
- Defined in:
- lib/twilio-ruby/rest/insights.rb,
lib/twilio-ruby/rest/insights/v1.rb,
lib/twilio-ruby/rest/insights/v1/summary.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ Insights
constructor
Initialize the Insights Domain.
- #summary(call_sid = :unset) ⇒ Twilio::REST::Insights::V1::CallSummaryInstance, Twilio::REST::Insights::V1::CallSummaryList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of insights.
Methods inherited from Domain
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
#summary(call_sid = :unset) ⇒ Twilio::REST::Insights::V1::CallSummaryInstance, Twilio::REST::Insights::V1::CallSummaryList
35 36 37 |
# File 'lib/twilio-ruby/rest/insights.rb', line 35 def summary(call_sid=:unset) self.v1.summary(call_sid) end |
#to_s ⇒ Object
Provide a user friendly representation
41 42 43 |
# File 'lib/twilio-ruby/rest/insights.rb', line 41 def to_s '#<Twilio::REST::Insights>' end |