class Twilio::REST::Trusthub::V1::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/trusthub/v1/supporting_document_type.rb
149 def initialize(version, sid)
150   super(version)
151 
152   # Path Solution
153   @solution = {sid: sid, }
154   @uri = "/SupportingDocumentTypes/#{@solution[:sid]}"
155 end

Public Instance Methods

fetch() click to toggle source

Fetch the SupportingDocumentTypeInstance @return [SupportingDocumentTypeInstance] Fetched SupportingDocumentTypeInstance

    # File lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb
160 def fetch
161   payload = @version.fetch('GET', @uri)
162 
163   SupportingDocumentTypeInstance.new(@version, payload, sid: @solution[:sid], )
164 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb
175 def inspect
176   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
177   "#<Twilio.Trusthub.V1.SupportingDocumentTypeContext #{context}>"
178 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb
168 def to_s
169   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
170   "#<Twilio.Trusthub.V1.SupportingDocumentTypeContext #{context}>"
171 end