Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::TaskQueueList::TaskQueuesStatisticsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Taskrouter::V1::WorkspaceContext::TaskQueueList::TaskQueuesStatisticsInstance
- Defined in:
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the TaskQueue resource.
-
#cumulative ⇒ Hash
An object that contains the cumulative statistics for the TaskQueues.
-
#initialize(version, payload, workspace_sid: nil) ⇒ TaskQueuesStatisticsInstance
constructor
Initialize the TaskQueuesStatisticsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#realtime ⇒ Hash
An object that contains the real-time statistics for the TaskQueues.
-
#task_queue_sid ⇒ String
The SID of the TaskQueue from which these statistics were calculated.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#workspace_sid ⇒ String
The SID of the Workspace that contains the TaskQueues.
Constructor Details
#initialize(version, payload, workspace_sid: nil) ⇒ TaskQueuesStatisticsInstance
Initialize the TaskQueuesStatisticsInstance
202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 202 def initialize(version, payload , workspace_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'cumulative' => payload['cumulative'], 'realtime' => payload['realtime'], 'task_queue_sid' => payload['task_queue_sid'], 'workspace_sid' => payload['workspace_sid'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the TaskQueue resource.
218 219 220 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 218 def account_sid @properties['account_sid'] end |
#cumulative ⇒ Hash
Returns An object that contains the cumulative statistics for the TaskQueues.
224 225 226 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 224 def cumulative @properties['cumulative'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
254 255 256 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 254 def inspect "<Twilio.Taskrouter.V1.TaskQueuesStatisticsInstance>" end |
#realtime ⇒ Hash
Returns An object that contains the real-time statistics for the TaskQueues.
230 231 232 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 230 def realtime @properties['realtime'] end |
#task_queue_sid ⇒ String
Returns The SID of the TaskQueue from which these statistics were calculated.
236 237 238 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 236 def task_queue_sid @properties['task_queue_sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
248 249 250 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 248 def to_s "<Twilio.Taskrouter.V1.TaskQueuesStatisticsInstance>" end |
#workspace_sid ⇒ String
Returns The SID of the Workspace that contains the TaskQueues.
242 243 244 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb', line 242 def workspace_sid @properties['workspace_sid'] end |