Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb

Defined Under Namespace

Classes: BundleContext, BundleInstance, BundleList, BundlePage, EndUserContext, EndUserInstance, EndUserList, EndUserPage, EndUserTypeContext, EndUserTypeInstance, EndUserTypeList, EndUserTypePage, RegulationContext, RegulationInstance, RegulationList, RegulationPage, SupportingDocumentContext, SupportingDocumentInstance, SupportingDocumentList, SupportingDocumentPage, SupportingDocumentTypeContext, SupportingDocumentTypeInstance, SupportingDocumentTypeList, SupportingDocumentTypePage

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ RegulatoryComplianceList

Initialize the RegulatoryComplianceList

Parameters:

  • version (Version)

    Version that contains the resource



26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 26

def initialize(version)
    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
end

Instance Method Details

#bundles(sid = :unset) ⇒ BundleList, BundleContext

Access the bundles

Returns:

Raises:

  • (ArgumentError)


71
72
73
74
75
76
77
78
79
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 71

def bundles(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return BundleContext.new(@version,sid )
    end

    @bundles ||= BundleList.new(@version )
end

#end_user_types(sid = :unset) ⇒ EndUserTypeList, EndUserTypeContext

Access the end_user_types

Returns:

Raises:

  • (ArgumentError)


110
111
112
113
114
115
116
117
118
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 110

def end_user_types(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return EndUserTypeContext.new(@version,sid )
    end

    @end_user_types ||= EndUserTypeList.new(@version )
end

#end_users(sid = :unset) ⇒ EndUserList, EndUserContext

Access the end_users

Returns:

Raises:

  • (ArgumentError)


58
59
60
61
62
63
64
65
66
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 58

def end_users(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return EndUserContext.new(@version,sid )
    end

    @end_users ||= EndUserList.new(@version )
end

#regulations(sid = :unset) ⇒ RegulationList, RegulationContext

Access the regulations

Returns:

Raises:

  • (ArgumentError)


97
98
99
100
101
102
103
104
105
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 97

def regulations(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return RegulationContext.new(@version,sid )
    end

    @regulations ||= RegulationList.new(@version )
end

#supporting_document_types(sid = :unset) ⇒ SupportingDocumentTypeList, SupportingDocumentTypeContext

Access the supporting_document_types

Returns:

Raises:

  • (ArgumentError)


84
85
86
87
88
89
90
91
92
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 84

def supporting_document_types(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return SupportingDocumentTypeContext.new(@version,sid )
    end

    @supporting_document_types ||= SupportingDocumentTypeList.new(@version )
end

#supporting_documents(sid = :unset) ⇒ SupportingDocumentList, SupportingDocumentContext

Access the supporting_documents

Returns:

Raises:

  • (ArgumentError)


45
46
47
48
49
50
51
52
53
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 45

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

#to_sObject

Provide a user friendly representation



121
122
123
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 121

def to_s
    '#<Twilio.Numbers.V2.RegulatoryComplianceList>'
end