lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb in twilio-ruby-6.4.0 vs lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb in twilio-ruby-6.5.0
- old
+ new
@@ -26,20 +26,33 @@
super(version)
# Path Solution
@solution = { }
@uri = "/RegulatoryCompliance"
# Components
+ @supporting_documents = nil
@end_users = nil
@bundles = nil
@supporting_document_types = nil
@regulations = nil
@end_user_types = nil
- @supporting_documents = nil
end
##
+ # Access the supporting_documents
+ # @return [SupportingDocumentList]
+ # @return [SupportingDocumentContext] if sid was passed.
+ def supporting_documents(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
+
+ if sid != :unset
+ return SupportingDocumentContext.new(@version,sid )
+ end
+
+ @supporting_documents ||= SupportingDocumentList.new(@version )
+ end
+ ##
# Access the end_users
# @return [EndUserList]
# @return [EndUserContext] if sid was passed.
def end_users(sid=:unset)
raise ArgumentError, 'sid cannot be nil' if sid.nil?
@@ -99,22 +112,9 @@
if sid != :unset
return EndUserTypeContext.new(@version,sid )
end
@end_user_types ||= EndUserTypeList.new(@version )
- end
- ##
- # Access the supporting_documents
- # @return [SupportingDocumentList]
- # @return [SupportingDocumentContext] if sid was passed.
- def supporting_documents(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
-
- if sid != :unset
- return SupportingDocumentContext.new(@version,sid )
- end
-
- @supporting_documents ||= SupportingDocumentList.new(@version )
end
# Provide a user friendly representation
def to_s
'#<Twilio.Numbers.V2.RegulatoryComplianceList>'