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/supporting_document.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


18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 18

def initialize(version)
  super(version)

  # Path Solution
  @solution = {}

  # Components
  @bundles = nil
  @end_users = nil
  @end_user_types = nil
  @regulations = nil
  @supporting_documents = nil
  @supporting_document_types = nil
end

Instance Method Details

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

Access the bundles

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Bundle resource.

Returns:

Raises:

  • (ArgumentError)

39
40
41
42
43
44
45
46
47
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 39

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

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that identifies the End-User Type resource.

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 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

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string created by Twilio to identify the End User resource.

Returns:

Raises:

  • (ArgumentError)

55
56
57
58
59
60
61
62
63
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 55

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

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that identifies the Regulation resource.

Returns:

Raises:

  • (ArgumentError)

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

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

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that identifies the Supporting Document Type resource.

Returns:

Raises:

  • (ArgumentError)

118
119
120
121
122
123
124
125
126
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 118

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

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string created by Twilio to identify the Supporting Document resource.

Returns:

Raises:

  • (ArgumentError)

102
103
104
105
106
107
108
109
110
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 102

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


130
131
132
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb', line 130

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