Class: Twilio::REST::Studio::V2::FlowValidateListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Studio::V2::FlowValidateListResponse
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow_validate.rb
Instance Method Summary collapse
- #flow_validate ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ FlowValidateListResponse
constructor
A new instance of FlowValidateListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ FlowValidateListResponse
Returns a new instance of FlowValidateListResponse.
181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 181 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @flow_validate = data_list.map do |data| FlowValidateInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#flow_validate ⇒ Object
193 194 195 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 193 def flow_validate @flow_validate end |
#headers ⇒ Object
197 198 199 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 197 def headers @headers end |
#status_code ⇒ Object
201 202 203 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 201 def status_code @status_code end |