five9 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
1
  module Five9
2
2
  class AcdStatus < Statistics
3
3
  attr_accessor :stats
4
- def initialize(username,password)
4
+ def initialize(username,password,timeout=300)
5
5
  @stats = nil
6
- super(username,password)
6
+ super(username,password,timeout)
7
7
  end
8
8
 
9
9
  def getStatistics(columns=[])
@@ -1,9 +1,9 @@
1
1
  module Five9
2
2
  class AgentStats < Statistics
3
3
  attr_accessor :stats
4
- def initialize(username,password)
4
+ def initialize(username,password,timeout=300)
5
5
  @stats = nil
6
- super(username,password)
6
+ super(username,password,timeout)
7
7
  end
8
8
 
9
9
  def getStatistics(columns=[])
@@ -1,10 +1,11 @@
1
1
  require 'savon'
2
2
  module Five9
3
3
  class Base
4
- def initialize(username,password,given_wsdl)
4
+ def initialize(username,password,given_wsdl,timeout=300)
5
5
  @client = Savon::Client.new do
6
6
  wsdl.document = given_wsdl + username
7
7
  http.auth.basic(username,password)
8
+ http.read_timeout = timeout
8
9
  end
9
10
  end
10
11
  end
@@ -1,9 +1,9 @@
1
1
  module Five9
2
2
  class InboundCampaignStats < Statistics
3
3
  attr_accessor :stats
4
- def initialize(username,password)
4
+ def initialize(username,password,timeout=300)
5
5
  @stats = nil
6
- super(username,password)
6
+ super(username,password,timeout)
7
7
  end
8
8
 
9
9
  def getStatistics(columns=[])
@@ -1,7 +1,7 @@
1
1
  module Five9
2
2
  class Statistics < Base
3
- def initialize(username,password)
4
- super(username,password,"https://api.five9.com/wssupervisor/SupervisorWebService?wsdl&user=")
3
+ def initialize(username,password,timeout=300)
4
+ super(username,password,"https://api.five9.com/wssupervisor/SupervisorWebService?wsdl&user=",timeout)
5
5
  @last_working_timestamp = nil
6
6
  end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Five9
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five9
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
12
+ date: 2013-04-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rubygem integration with five9 API
15
15
  email: