Class: Twilio::REST::Numbers

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers.rb,
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: V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Numbers

Initialize the Numbers Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/numbers.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://numbers.twilio.com'
  @host = 'numbers.twilio.com'
  @port = 443

  # Versions
  @v2 = nil
end

Instance Method Details

#regulatory_complianceTwilio::REST::Numbers::V2::RegulatoryComplianceInstance


33
34
35
# File 'lib/twilio-ruby/rest/numbers.rb', line 33

def regulatory_compliance
  self.v2.regulatory_compliance()
end

#to_sObject

Provide a user friendly representation


39
40
41
# File 'lib/twilio-ruby/rest/numbers.rb', line 39

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

#v2Object

Version v2 of numbers


27
28
29
# File 'lib/twilio-ruby/rest/numbers.rb', line 27

def v2
  @v2 ||= V2.new self
end