Class: Twilio::REST::Numbers::V2
- Defined in:
- lib/twilio-ruby/rest/numbers/v2.rb,
lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb,
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb,
lib/twilio-ruby/rest/numbers/v2/authorization_document.rb,
lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.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,
lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
Defined Under Namespace
Classes: AuthorizationDocumentContext, AuthorizationDocumentInstance, AuthorizationDocumentList, AuthorizationDocumentPage, BulkHostedNumberOrderContext, BulkHostedNumberOrderInstance, BulkHostedNumberOrderList, BulkHostedNumberOrderPage, HostedNumberOrderContext, HostedNumberOrderInstance, HostedNumberOrderList, HostedNumberOrderPage, RegulatoryComplianceInstance, RegulatoryComplianceList, RegulatoryCompliancePage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #authorization_documents(sid = :unset) ⇒ Twilio::REST::Numbers::V2::AuthorizationDocumentContext, Twilio::REST::Numbers::V2::AuthorizationDocumentList
- #bulk_hosted_number_orders(bulk_hosting_sid = :unset) ⇒ Twilio::REST::Numbers::V2::BulkHostedNumberOrderContext, Twilio::REST::Numbers::V2::BulkHostedNumberOrderList
- #hosted_number_orders(sid = :unset) ⇒ Twilio::REST::Numbers::V2::HostedNumberOrderContext, Twilio::REST::Numbers::V2::HostedNumberOrderList
-
#initialize(domain) ⇒ V2
constructor
Initialize the V2 version of Numbers.
- #regulatory_compliance ⇒ Twilio::REST::Numbers::V2::RegulatoryComplianceList
-
#to_s ⇒ Object
Provide a user friendly representation.
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
21 22 23 24 25 26 27 28 |
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 21 def initialize(domain) super @version = 'v2' @authorization_documents = nil @bulk_hosted_number_orders = nil @hosted_number_orders = nil @regulatory_compliance = nil end |
Instance Method Details
#authorization_documents(sid = :unset) ⇒ Twilio::REST::Numbers::V2::AuthorizationDocumentContext, Twilio::REST::Numbers::V2::AuthorizationDocumentList
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 34 def (sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @authorization_documents ||= AuthorizationDocumentList.new self else AuthorizationDocumentContext.new(self, sid) end end |
#bulk_hosted_number_orders(bulk_hosting_sid = :unset) ⇒ Twilio::REST::Numbers::V2::BulkHostedNumberOrderContext, Twilio::REST::Numbers::V2::BulkHostedNumberOrderList
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 48 def bulk_hosted_number_orders(bulk_hosting_sid=:unset) if bulk_hosting_sid.nil? raise ArgumentError, 'bulk_hosting_sid cannot be nil' end if bulk_hosting_sid == :unset @bulk_hosted_number_orders ||= BulkHostedNumberOrderList.new self else BulkHostedNumberOrderContext.new(self, bulk_hosting_sid) end end |
#hosted_number_orders(sid = :unset) ⇒ Twilio::REST::Numbers::V2::HostedNumberOrderContext, Twilio::REST::Numbers::V2::HostedNumberOrderList
62 63 64 65 66 67 68 69 70 71 |
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 62 def hosted_number_orders(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @hosted_number_orders ||= HostedNumberOrderList.new self else HostedNumberOrderContext.new(self, sid) end end |
#regulatory_compliance ⇒ Twilio::REST::Numbers::V2::RegulatoryComplianceList
74 75 76 |
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 74 def regulatory_compliance @regulatory_compliance ||= RegulatoryComplianceList.new self end |
#to_s ⇒ Object
Provide a user friendly representation
79 80 81 |
# File 'lib/twilio-ruby/rest/numbers/v2.rb', line 79 def to_s '<Twilio::REST::Numbers::V2>'; end |