Class: Twilio::REST::Verify::V2::FormListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Verify::V2::FormListResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/form.rb,
lib/twilio-ruby/rest/verify/v2/form.rb
Instance Method Summary collapse
- #form ⇒ Object
- #form_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ FormListResponse
constructor
A new instance of FormListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ FormListResponse
Returns a new instance of FormListResponse.
154 155 156 157 158 159 160 |
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 154 def initialize(version, payload, key) @form_instance = payload.body[key].map do |data| FormInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#form ⇒ Object
243 244 245 |
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 243 def form @form end |
#form_instance ⇒ Object
162 163 164 |
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 162 def form_instance @instance end |
#headers ⇒ Object
247 248 249 |
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 247 def headers @headers end |
#status_code ⇒ Object
251 252 253 |
# File 'lib/twilio-ruby/rest/verify/v2/form.rb', line 251 def status_code @status_code end |