Class: Five9::AgentStats

Inherits:
Statistics show all
Defined in:
lib/five9/agent_stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Statistics

#setSessionParams

Constructor Details

#initialize(username, password, timeout = 300) ⇒ AgentStats

Returns a new instance of AgentStats.



4
5
6
7
# File 'lib/five9/agent_stats.rb', line 4

def initialize(username,password,timeout=300)
  @stats = nil
  super(username,password,timeout)
end

Instance Attribute Details

#statsObject

Returns the value of attribute stats.



3
4
5
# File 'lib/five9/agent_stats.rb', line 3

def stats
  @stats
end

Instance Method Details

#getStatistics(columns = []) ⇒ Object



9
10
11
# File 'lib/five9/agent_stats.rb', line 9

def getStatistics(columns=[])
  @stats = super("AgentStatistics",columns)
end

#getStatisticsUpdate(long_polling_timeout = 10000) ⇒ Object



13
14
15
# File 'lib/five9/agent_stats.rb', line 13

def getStatisticsUpdate(long_polling_timeout=10000)
  super("AgentStatistics","Username",long_polling_timeout)
end