Class: Twilio::REST::Preview::TrustedComms
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Preview::TrustedComms
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/business.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,
lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb,
lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb,
lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb,
lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb,
lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb
Defined Under Namespace
Classes: BrandedCallInstance, BrandedCallList, BrandedCallPage, BrandedChannelContext, BrandedChannelInstance, BrandedChannelList, BrandedChannelPage, BrandsInformationContext, BrandsInformationInstance, BrandsInformationList, BrandsInformationPage, BusinessContext, BusinessInstance, BusinessList, BusinessPage, CpsContext, CpsInstance, CpsList, CpsPage, CurrentCallContext, CurrentCallInstance, CurrentCallList, CurrentCallPage, 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 the TrustedComms version of Preview
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 15
def initialize(domain)
super
@version = 'TrustedComms'
@branded_calls = nil
@branded_channels = nil
@brands_information = nil
@businesses = nil
@cps = nil
@current_calls = nil
@phone_calls = nil
end
|
Instance Method Details
#branded_calls ⇒ Twilio::REST::Preview::TrustedComms::BrandedCallContext
29
30
31
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 29
def branded_calls
@branded_calls ||= BrandedCallList.new self
end
|
37
38
39
40
41
42
43
44
45
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 37
def branded_channels(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@branded_channels ||= BrandedChannelList.new self
else
BrandedChannelContext.new(self, sid)
end
end
|
49
50
51
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 49
def brands_information
@brands_information ||= BrandsInformationContext.new self
end
|
58
59
60
61
62
63
64
65
66
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 58
def businesses(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@businesses ||= BusinessList.new self
else
BusinessContext.new(self, sid)
end
end
|
70
71
72
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 70
def cps
@cps ||= CpsContext.new self
end
|
76
77
78
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 76
def current_calls
@current_calls ||= CurrentCallContext.new self
end
|
#phone_calls ⇒ Twilio::REST::Preview::TrustedComms::PhoneCallContext
82
83
84
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 82
def phone_calls
@phone_calls ||= PhoneCallList.new self
end
|
#to_s ⇒ Object
Provide a user friendly representation
88
89
90
|
# File 'lib/twilio-ruby/rest/preview/trusted_comms.rb', line 88
def to_s
'<Twilio::REST::Preview::TrustedComms>'
end
|