Class: Twilio::REST::Insights::V1
- Defined in:
- lib/twilio-ruby/rest/insights/v1.rb,
lib/twilio-ruby/rest/insights/v1/call.rb,
lib/twilio-ruby/rest/insights/v1/call/event.rb,
lib/twilio-ruby/rest/insights/v1/call/metric.rb,
lib/twilio-ruby/rest/insights/v1/call/summary.rb
Defined Under Namespace
Classes: CallContext, CallInstance, CallList, CallPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #calls(sid = :unset) ⇒ Twilio::REST::Insights::V1::CallContext, Twilio::REST::Insights::V1::CallList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Insights.
-
#to_s ⇒ Object
Provide a user friendly representation.
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
15 16 17 18 19 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 15 def initialize(domain) super @version = 'v1' @calls = nil end |
Instance Method Details
#calls(sid = :unset) ⇒ Twilio::REST::Insights::V1::CallContext, Twilio::REST::Insights::V1::CallList
25 26 27 28 29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 25 def calls(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @calls ||= CallList.new self else CallContext.new(self, sid) end end |
#to_s ⇒ Object
Provide a user friendly representation
37 38 39 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 37 def to_s '<Twilio::REST::Insights::V1>' end |