class Twilio::REST::Numbers::V2::RegulatoryComplianceList::SupportingDocumentContext

Public Class Methods

new(version, sid) click to toggle source

Initialize the SupportingDocumentContext @param [Version] version Version that contains the resource @param [String] sid The unique string created by Twilio to identify the

Supporting Document resource.

@return [SupportingDocumentContext] SupportingDocumentContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
170 def initialize(version, sid)
171   super(version)
172 
173   # Path Solution
174   @solution = {sid: sid, }
175   @uri = "/RegulatoryCompliance/SupportingDocuments/#{@solution[:sid]}"
176 end

Public Instance Methods

delete() click to toggle source

Delete the SupportingDocumentInstance @return [Boolean] true if delete succeeds, false otherwise

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
208 def delete
209    @version.delete('DELETE', @uri)
210 end
fetch() click to toggle source

Fetch the SupportingDocumentInstance @return [SupportingDocumentInstance] Fetched SupportingDocumentInstance

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
181 def fetch
182   payload = @version.fetch('GET', @uri)
183 
184   SupportingDocumentInstance.new(@version, payload, sid: @solution[:sid], )
185 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
221 def inspect
222   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
223   "#<Twilio.Numbers.V2.SupportingDocumentContext #{context}>"
224 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
214 def to_s
215   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
216   "#<Twilio.Numbers.V2.SupportingDocumentContext #{context}>"
217 end
update(friendly_name: :unset, attributes: :unset) click to toggle source

Update the SupportingDocumentInstance @param [String] friendly_name The string that you assigned to describe the

resource.

@param [Hash] attributes The set of parameters that are the attributes of the

Supporting Document resource which are derived Supporting Document Types.

@return [SupportingDocumentInstance] Updated SupportingDocumentInstance

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
194 def update(friendly_name: :unset, attributes: :unset)
195   data = Twilio::Values.of({
196       'FriendlyName' => friendly_name,
197       'Attributes' => Twilio.serialize_object(attributes),
198   })
199 
200   payload = @version.update('POST', @uri, data: data)
201 
202   SupportingDocumentInstance.new(@version, payload, sid: @solution[:sid], )
203 end