Class: Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext::StepContextListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext::StepContextListResponse
- Defined in:
- lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ StepContextListResponse
constructor
A new instance of StepContextListResponse.
- #step_context_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ StepContextListResponse
Returns a new instance of StepContextListResponse.
164 165 166 167 168 169 170 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 164 def initialize(version, payload, key) @step_context_instance = payload.body[key].map do |data| StepContextInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#step_context_instance ⇒ Object
172 173 174 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 172 def step_context_instance @instance end |