class Twilio::REST::Numbers::V2::RegulatoryComplianceList::SupportingDocumentTypeContext
Public Class Methods
new(version, sid)
click to toggle source
Initialize the SupportingDocumentTypeContext
@param [Version] version Version
that contains the resource @param [String] sid The unique string that identifies the Supporting Document
Type resource.
@return [SupportingDocumentTypeContext] SupportingDocumentTypeContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb 150 def initialize(version, sid) 151 super(version) 152 153 # Path Solution 154 @solution = {sid: sid, } 155 @uri = "/RegulatoryCompliance/SupportingDocumentTypes/#{@solution[:sid]}" 156 end
Public Instance Methods
fetch()
click to toggle source
Fetch the SupportingDocumentTypeInstance
@return [SupportingDocumentTypeInstance] Fetched SupportingDocumentTypeInstance
# File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb 161 def fetch 162 payload = @version.fetch('GET', @uri) 163 164 SupportingDocumentTypeInstance.new(@version, payload, sid: @solution[:sid], ) 165 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb 176 def inspect 177 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 178 "#<Twilio.Numbers.V2.SupportingDocumentTypeContext #{context}>" 179 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb 169 def to_s 170 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 171 "#<Twilio.Numbers.V2.SupportingDocumentTypeContext #{context}>" 172 end