totalvoice-ruby 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d22cf32e554d3cf80b25385d922c4280ac6891ab
4
- data.tar.gz: d4d6d812022e5df6a6d950edb500d5461c0c66ff
3
+ metadata.gz: 156b598bd074acb2c3962eb1bfff5cdc990a8e5b
4
+ data.tar.gz: b8d2fab5772b2144ffbbf5d94fa1745e70dfe74a
5
5
  SHA512:
6
- metadata.gz: c1044543544ddca6336dad5b62c4fb0958dbbc513e91588d367287035e8345626581c26686a9b875d1640ce9625ae53a095c358c2f7fab73be4bf0409de9788f
7
- data.tar.gz: 07316c01470c392514a0b8ddcb707d093c72bfa4d9e959521fa73bdf3c3ec87ff43ed3d5b8228898d785246a0aa691341870244888e3bd64bce495febd96f4f8
6
+ metadata.gz: 2c7a03544fa55a3606bc7b30a3aba0eeac51a11dd5946bca6a49caff1d9571814ce7294e7e0cc1c6a9eb840071546e71753c0596396d292aac099bd1d6cfe4e7
7
+ data.tar.gz: 9caab1b0f59ae449f3dc3b4294f3edf71ef4181b4157824e570b1830d301f39152867b4e7ad3c336aa8c8501f44059d2c42c14106aaa104721e97630527abd0a
data/lib/api/fila.rb ADDED
@@ -0,0 +1,23 @@
1
+ require_relative '../route'
2
+
3
+ module TotalVoice
4
+ # Inicializa o HTTP client
5
+ class Fila
6
+ attr_reader :client
7
+ ROTA_FILA = "/fila"
8
+
9
+ def initialize(client)
10
+ @client = client
11
+ end
12
+
13
+ ##
14
+ # Busca as informações da Fila de Atendimento
15
+ #
16
+ # @param [Integer] id
17
+ # @return [json]
18
+ #
19
+ def buscar(id)
20
+ @client.get(Route.new([ROTA_FILA, id.to_s]))
21
+ end
22
+ end
23
+ end
data/lib/client.rb CHANGED
@@ -4,6 +4,7 @@ require 'json'
4
4
  require_relative 'query'
5
5
  require_relative 'api/audio'
6
6
  require_relative 'api/bina'
7
+ require_relative 'api/fila'
7
8
  require_relative 'api/chamada'
8
9
  require_relative 'api/composto'
9
10
  require_relative 'api/conferencia'
@@ -39,6 +40,7 @@ module TotalVoice
39
40
 
40
41
  @audio = nil
41
42
  @bina = nil
43
+ @fila = nil
42
44
  @chamada = nil
43
45
  @conta = nil
44
46
  @composto = nil
@@ -60,6 +62,10 @@ module TotalVoice
60
62
  @bina ||= Bina.new self
61
63
  end
62
64
 
65
+ def fila
66
+ @fila ||= Fila.new self
67
+ end
68
+
63
69
  def chamada
64
70
  @chamada ||= Chamada.new self
65
71
  end
@@ -1,3 +1,3 @@
1
1
  module TotalVoice
2
- VERSION = '1.2.1'
2
+ VERSION = '1.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totalvoice-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DiloWagner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -41,6 +41,7 @@ files:
41
41
  - lib/api/conferencia.rb
42
42
  - lib/api/conta.rb
43
43
  - lib/api/did.rb
44
+ - lib/api/fila.rb
44
45
  - lib/api/perfil.rb
45
46
  - lib/api/ramal.rb
46
47
  - lib/api/sms.rb