Class: Twilio::REST::Preview::TrustedComms

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview/trusted_comms.rb,
lib/twilio-ruby/rest/preview/trusted_comms/cps.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/branded_call.rb,
lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb

Defined Under Namespace

Classes: BrandedCallInstance, BrandedCallList, BrandedCallPage, CpsContext, CpsInstance, CpsList, CpsPage, CurrentCallContext, CurrentCallInstance, CurrentCallList, CurrentCallPage, DeviceInstance, DeviceList, DevicePage, PhoneCallInstance, PhoneCallList, PhoneCallPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

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
22
23
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 15

def initialize(domain)
  super
  @version = 'TrustedComms'
  @branded_calls = nil
  @devices = nil
  @phone_calls = nil
  @current_calls = nil
  @cps = nil
end

Instance Method Details

#branded_callsTwilio::REST::Preview::TrustedComms::BrandedCallContext

Returns:

  • (Twilio::REST::Preview::TrustedComms::BrandedCallContext)


27
28
29
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 27

def branded_calls
  @branded_calls ||= BrandedCallList.new self
end

#cpsTwilio::REST::Preview::TrustedComms::CpsContext



51
52
53
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 51

def cps
  @cps ||= CpsContext.new self
end

#current_callsTwilio::REST::Preview::TrustedComms::CurrentCallContext



45
46
47
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 45

def current_calls
  @current_calls ||= CurrentCallContext.new self
end

#devicesTwilio::REST::Preview::TrustedComms::DeviceContext

Returns:

  • (Twilio::REST::Preview::TrustedComms::DeviceContext)


33
34
35
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 33

def devices
  @devices ||= DeviceList.new self
end

#phone_callsTwilio::REST::Preview::TrustedComms::PhoneCallContext

Returns:

  • (Twilio::REST::Preview::TrustedComms::PhoneCallContext)


39
40
41
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 39

def phone_calls
  @phone_calls ||= PhoneCallList.new self
end

#to_sObject

Provide a user friendly representation



57
58
59
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 57

def to_s
  '<Twilio::REST::Preview::TrustedComms>'
end