Class: Queri::Realtime::Agents

Inherits:
Queri::Realtime show all
Includes:
CompositeReportHelpers
Defined in:
lib/queri/realtime/agents.rb

Instance Attribute Summary

Attributes inherited from Queri::Realtime

#response

Class Method Summary collapse

Methods inherited from Queri::Realtime

#initialize, keys, query_method

Constructor Details

This class inherits a constructor from Queri::Realtime

Class Method Details

.key_translationsObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/queri/realtime/agents.rb', line 11

def key_translations
  ActiveSupport::OrderedHash[
    :ready_state, " ",
    :empty_column, " ",
    :agent, "Agent  ",
    :login_time, "Last logon  ",
    :assigned_queues, "Queue(s):",
    :extension, "Extension  ",
    :pause, "On pause  ",
    :server, "Srv",
    :time_last_call_ended, "Last call",
    :on_queue, "On queue",
    :magic_wand, " "
  ]
end

.xml_codeObject



7
8
9
# File 'lib/queri/realtime/agents.rb', line 7

def xml_code
  Realtime.xml_code + ".RTAgentsLoggedIn"
end