Class: Twilio::REST::Preview::TrustedComms
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms.rb,
lib/twilio-ruby/rest/preview/trusted_comms/device.rb,
lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb,
lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb
Defined Under Namespace
Classes: CurrentCallContext, CurrentCallInstance, CurrentCallList, CurrentCallPage, DeviceInstance, DeviceList, DevicePage, PhoneCallInstance, PhoneCallList, PhoneCallPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #current_calls ⇒ Twilio::REST::Preview::TrustedComms::CurrentCallContext
- #devices ⇒ Twilio::REST::Preview::TrustedComms::DeviceContext
-
#initialize(domain) ⇒ TrustedComms
constructor
Initialize the TrustedComms version of Preview.
- #phone_calls ⇒ Twilio::REST::Preview::TrustedComms::PhoneCallContext
-
#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) ⇒ TrustedComms
Initialize the TrustedComms version of Preview
15 16 17 18 19 20 21 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 15 def initialize(domain) super @version = 'TrustedComms' @devices = nil @phone_calls = nil @current_calls = nil end |
Instance Method Details
#current_calls ⇒ Twilio::REST::Preview::TrustedComms::CurrentCallContext
37 38 39 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 37 def current_calls @current_calls ||= CurrentCallContext.new self end |
#devices ⇒ Twilio::REST::Preview::TrustedComms::DeviceContext
25 26 27 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 25 def devices @devices ||= DeviceList.new self end |
#phone_calls ⇒ Twilio::REST::Preview::TrustedComms::PhoneCallContext
31 32 33 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 31 def phone_calls @phone_calls ||= PhoneCallList.new self end |
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 43 def to_s '<Twilio::REST::Preview::TrustedComms>' end |