class Twilio::REST::Trusthub::V1

Public Class Methods

new(domain) click to toggle source

Initialize the V1 version of Trusthub

Calls superclass method Twilio::REST::Version::new
   # File lib/twilio-ruby/rest/trusthub/v1.rb
15 def initialize(domain)
16   super
17   @version = 'v1'
18   @customer_profiles = nil
19   @end_users = nil
20   @end_user_types = nil
21   @policies = nil
22   @supporting_documents = nil
23   @supporting_document_types = nil
24   @trust_products = nil
25 end

Public Instance Methods

customer_profiles(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the

Customer-Profile resource.

@return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::CustomerProfilesList]

   # File lib/twilio-ruby/rest/trusthub/v1.rb
32 def customer_profiles(sid=:unset)
33   if sid.nil?
34       raise ArgumentError, 'sid cannot be nil'
35   end
36   if sid == :unset
37       @customer_profiles ||= CustomerProfilesList.new self
38   else
39       CustomerProfilesContext.new(self, sid)
40   end
41 end
end_user_types(sid=:unset) click to toggle source

@param [String] sid The unique string that identifies the End-User Type

resource.

@return [Twilio::REST::Trusthub::V1::EndUserTypeContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::EndUserTypeList]

   # File lib/twilio-ruby/rest/trusthub/v1.rb
64 def end_user_types(sid=:unset)
65   if sid.nil?
66       raise ArgumentError, 'sid cannot be nil'
67   end
68   if sid == :unset
69       @end_user_types ||= EndUserTypeList.new self
70   else
71       EndUserTypeContext.new(self, sid)
72   end
73 end
end_users(sid=:unset) click to toggle source

@param [String] sid The unique string created by Twilio to identify the End User

resource.

@return [Twilio::REST::Trusthub::V1::EndUserContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::EndUserList]

   # File lib/twilio-ruby/rest/trusthub/v1.rb
48 def end_users(sid=:unset)
49   if sid.nil?
50       raise ArgumentError, 'sid cannot be nil'
51   end
52   if sid == :unset
53       @end_users ||= EndUserList.new self
54   else
55       EndUserContext.new(self, sid)
56   end
57 end
policies(sid=:unset) click to toggle source

@param [String] sid The unique string that identifies the Policy resource. @return [Twilio::REST::Trusthub::V1::PoliciesContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::PoliciesList]

   # File lib/twilio-ruby/rest/trusthub/v1.rb
79 def policies(sid=:unset)
80   if sid.nil?
81       raise ArgumentError, 'sid cannot be nil'
82   end
83   if sid == :unset
84       @policies ||= PoliciesList.new self
85   else
86       PoliciesContext.new(self, sid)
87   end
88 end
supporting_document_types(sid=:unset) click to toggle source

@param [String] sid The unique string that identifies the Supporting Document

Type resource.

@return [Twilio::REST::Trusthub::V1::SupportingDocumentTypeContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::SupportingDocumentTypeList]

    # File lib/twilio-ruby/rest/trusthub/v1.rb
111 def supporting_document_types(sid=:unset)
112   if sid.nil?
113       raise ArgumentError, 'sid cannot be nil'
114   end
115   if sid == :unset
116       @supporting_document_types ||= SupportingDocumentTypeList.new self
117   else
118       SupportingDocumentTypeContext.new(self, sid)
119   end
120 end
supporting_documents(sid=:unset) click to toggle source

@param [String] sid The unique string created by Twilio to identify the

Supporting Document resource.

@return [Twilio::REST::Trusthub::V1::SupportingDocumentContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::SupportingDocumentList]

    # File lib/twilio-ruby/rest/trusthub/v1.rb
 95 def supporting_documents(sid=:unset)
 96   if sid.nil?
 97       raise ArgumentError, 'sid cannot be nil'
 98   end
 99   if sid == :unset
100       @supporting_documents ||= SupportingDocumentList.new self
101   else
102       SupportingDocumentContext.new(self, sid)
103   end
104 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1.rb
140 def to_s
141   '<Twilio::REST::Trusthub::V1>'
142 end
trust_products(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the

Customer-Profile resource.

@return [Twilio::REST::Trusthub::V1::TrustProductsContext] if sid was passed. @return [Twilio::REST::Trusthub::V1::TrustProductsList]

    # File lib/twilio-ruby/rest/trusthub/v1.rb
127 def trust_products(sid=:unset)
128   if sid.nil?
129       raise ArgumentError, 'sid cannot be nil'
130   end
131   if sid == :unset
132       @trust_products ||= TrustProductsList.new self
133   else
134       TrustProductsContext.new(self, sid)
135   end
136 end