Class: Twilio::REST::Verify::V2::FormInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/verify/v2/form.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, form_instance, headers, status_code) ⇒ FormInstanceMetadata

Initializes a new FormInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}FormInstance]

    form_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



128
129
130
131
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 128

def initialize(version, form_instance, headers, status_code)
    super(version, headers, status_code)
    @form_instance = form_instance
end

Instance Method Details

#formObject



133
134
135
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 133

def form
    @form_instance
end

#headersObject



137
138
139
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 137

def headers
    @headers
end

#status_codeObject



141
142
143
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 141

def status_code
    @status_code
end

#to_sObject



145
146
147
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 145

def to_s
  "<Twilio.Api.V2010.FormInstanceMetadata status=#{@status_code}>"
end