Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkflowListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkflowListResponse
- Defined in:
- lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ WorkflowListResponse
constructor
A new instance of WorkflowListResponse.
- #status_code ⇒ Object
- #workflow ⇒ Object
- #workflow_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ WorkflowListResponse
Returns a new instance of WorkflowListResponse.
524 525 526 527 528 529 530 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 524 def initialize(version, payload, key) @workflow_instance = payload.body[key].map do |data| WorkflowInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
617 618 619 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 617 def headers @headers end |
#status_code ⇒ Object
621 622 623 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 621 def status_code @status_code end |
#workflow ⇒ Object
613 614 615 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 613 def workflow @workflow end |
#workflow_instance ⇒ Object
532 533 534 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 532 def workflow_instance @instance end |