Class: Twilio::REST::Studio::V1::FlowContext::EngagementContext::EngagementContextListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Studio::V1::FlowContext::EngagementContext::EngagementContextListResponse
- Defined in:
- lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
Instance Method Summary collapse
- #engagement_context ⇒ Object
- #engagement_context_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ EngagementContextListResponse
constructor
A new instance of EngagementContextListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ EngagementContextListResponse
Returns a new instance of EngagementContextListResponse.
160 161 162 163 164 165 166 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb', line 160 def initialize(version, payload, key) @engagement_context_instance = payload.body[key].map do |data| EngagementContextInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#engagement_context ⇒ Object
249 250 251 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb', line 249 def engagement_context @engagement_context end |
#engagement_context_instance ⇒ Object
168 169 170 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb', line 168 def engagement_context_instance @instance end |
#headers ⇒ Object
253 254 255 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb', line 253 def headers @headers end |
#status_code ⇒ Object
257 258 259 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb', line 257 def status_code @status_code end |