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/room.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,
lib/twilio-ruby/rest/insights/v1/room/participant.rb
Defined Under Namespace
Classes: CallContext, CallInstance, CallList, CallPage, RoomContext, RoomInstance, RoomList, RoomPage
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.
- #rooms(room_sid = :unset) ⇒ Twilio::REST::Insights::V1::RoomContext, Twilio::REST::Insights::V1::RoomList
-
#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 20 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 15 def initialize(domain) super @version = 'v1' @calls = nil @rooms = nil end |
Instance Method Details
#calls(sid = :unset) ⇒ Twilio::REST::Insights::V1::CallContext, Twilio::REST::Insights::V1::CallList
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 26 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 |
#rooms(room_sid = :unset) ⇒ Twilio::REST::Insights::V1::RoomContext, Twilio::REST::Insights::V1::RoomList
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 41 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 |
#to_s ⇒ Object
Provide a user friendly representation
54 55 56 |
# File 'lib/twilio-ruby/rest/insights/v1.rb', line 54 def to_s '<Twilio::REST::Insights::V1>' end |