class Twilio::REST::Numbers::V2::RegulatoryComplianceList

Public Class Methods

new(version) click to toggle source

Initialize the RegulatoryComplianceList @param [Version] version Version that contains the resource @return [RegulatoryComplianceList] RegulatoryComplianceList

Calls superclass method Twilio::REST::ListResource::new
   # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
18 def initialize(version)
19   super(version)
20 
21   # Path Solution
22   @solution = {}
23 
24   # Components
25   @bundles = nil
26   @end_users = nil
27   @end_user_types = nil
28   @regulations = nil
29   @supporting_documents = nil
30   @supporting_document_types = nil
31 end

Public Instance Methods

bundles(sid=:unset) click to toggle source

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

resource.

@return [BundleList] @return [BundleContext] if sid was passed.

   # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
39 def bundles(sid=:unset)
40   raise ArgumentError, 'sid cannot be nil' if sid.nil?
41 
42   if sid != :unset
43     return BundleContext.new(@version, sid, )
44   end
45 
46     @bundles ||= BundleList.new(@version, )
47 end
end_user_types(sid=:unset) click to toggle source

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

resource.

@return [EndUserTypeList] @return [EndUserTypeContext] if sid was passed.

   # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
71 def end_user_types(sid=:unset)
72   raise ArgumentError, 'sid cannot be nil' if sid.nil?
73 
74   if sid != :unset
75     return EndUserTypeContext.new(@version, sid, )
76   end
77 
78     @end_user_types ||= EndUserTypeList.new(@version, )
79 end
end_users(sid=:unset) click to toggle source

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

resource.

@return [EndUserList] @return [EndUserContext] if sid was passed.

   # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
55 def end_users(sid=:unset)
56   raise ArgumentError, 'sid cannot be nil' if sid.nil?
57 
58   if sid != :unset
59     return EndUserContext.new(@version, sid, )
60   end
61 
62     @end_users ||= EndUserList.new(@version, )
63 end
regulations(sid=:unset) click to toggle source

Access the regulations @param [String] sid The unique string that identifies the Regulation resource. @return [RegulationList] @return [RegulationContext] if sid was passed.

   # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
86 def regulations(sid=:unset)
87   raise ArgumentError, 'sid cannot be nil' if sid.nil?
88 
89   if sid != :unset
90     return RegulationContext.new(@version, sid, )
91   end
92 
93     @regulations ||= RegulationList.new(@version, )
94 end
supporting_document_types(sid=:unset) click to toggle source

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

Type resource.

@return [SupportingDocumentTypeList] @return [SupportingDocumentTypeContext] if sid was passed.

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
118 def supporting_document_types(sid=:unset)
119   raise ArgumentError, 'sid cannot be nil' if sid.nil?
120 
121   if sid != :unset
122     return SupportingDocumentTypeContext.new(@version, sid, )
123   end
124 
125     @supporting_document_types ||= SupportingDocumentTypeList.new(@version, )
126 end
supporting_documents(sid=:unset) click to toggle source

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

Supporting Document resource.

@return [SupportingDocumentList] @return [SupportingDocumentContext] if sid was passed.

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
102 def supporting_documents(sid=:unset)
103   raise ArgumentError, 'sid cannot be nil' if sid.nil?
104 
105   if sid != :unset
106     return SupportingDocumentContext.new(@version, sid, )
107   end
108 
109     @supporting_documents ||= SupportingDocumentList.new(@version, )
110 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
130 def to_s
131   '#<Twilio.Numbers.V2.RegulatoryComplianceList>'
132 end