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

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v2.rb,
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: RegulatoryComplianceInstance, RegulatoryComplianceList, RegulatoryCompliancePage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V2

Initialize the V2 version of Numbers


15
16
17
18
19
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 15

def initialize(domain)
  super
  @version = 'v2'
  @regulatory_compliance = nil
end

Instance Method Details

#regulatory_complianceTwilio::REST::Numbers::V2::RegulatoryComplianceContext

Returns:

  • (Twilio::REST::Numbers::V2::RegulatoryComplianceContext)

23
24
25
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 23

def regulatory_compliance
  @regulatory_compliance ||= RegulatoryComplianceList.new self
end

#to_sObject

Provide a user friendly representation


29
30
31
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 29

def to_s
  '<Twilio::REST::Numbers::V2>'
end