Class: Twilio::REST::Taskrouter::V1
- Defined in:
- lib/twilio-ruby/rest/taskrouter/v1.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb,
lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb
Defined Under Namespace
Classes: WorkspaceContext, WorkspaceInstance, WorkspaceList, WorkspacePage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Taskrouter.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #workspaces(sid = :unset) ⇒ Twilio::REST::Taskrouter::V1::WorkspaceContext, Twilio::REST::Taskrouter::V1::WorkspaceList
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Taskrouter
21 22 23 24 25 |
# File 'lib/twilio-ruby/rest/taskrouter/v1.rb', line 21 def initialize(domain) super @version = 'v1' @workspaces = nil end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/taskrouter/v1.rb', line 43 def to_s '<Twilio::REST::Taskrouter::V1>'; end |
#workspaces(sid = :unset) ⇒ Twilio::REST::Taskrouter::V1::WorkspaceContext, Twilio::REST::Taskrouter::V1::WorkspaceList
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/twilio-ruby/rest/taskrouter/v1.rb', line 31 def workspaces(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @workspaces ||= WorkspaceList.new self else WorkspaceContext.new(self, sid) end end |