class Twilio::REST::Verify::V2::FormContext
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Public Class Methods
new(version, form_type)
click to toggle source
Initialize the FormContext
@param [Version] version Version
that contains the resource @param [form.FormTypes] form_type The Type of this Form. Currently only
`form-push` is supported.
@return [FormContext] FormContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/verify/v2/form.rb 74 def initialize(version, form_type) 75 super(version) 76 77 # Path Solution 78 @solution = {form_type: form_type, } 79 @uri = "/Forms/#{@solution[:form_type]}" 80 end
Public Instance Methods
fetch()
click to toggle source
Fetch the FormInstance
@return [FormInstance] Fetched FormInstance
# File lib/twilio-ruby/rest/verify/v2/form.rb 85 def fetch 86 payload = @version.fetch('GET', @uri) 87 88 FormInstance.new(@version, payload, form_type: @solution[:form_type], ) 89 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/verify/v2/form.rb 100 def inspect 101 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 102 "#<Twilio.Verify.V2.FormContext #{context}>" 103 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/verify/v2/form.rb 93 def to_s 94 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 95 "#<Twilio.Verify.V2.FormContext #{context}>" 96 end