zei 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: 1a795fa03723841ba632eef90d00d1fce7a1a932caa56c4bb4f1a7fbba224c43
4
- data.tar.gz: 5334cf5d5ba627c6ff78e1b4e9d88aa1d19b7dbb8319fb107de3904be8d24c3d
3
+ metadata.gz: be2314dc3132d3d1eb03fcd01b4f18aa730a8b0d0ca4b3d26857f13133ff941d
4
+ data.tar.gz: 396b9467396c5ab0250ee5581004246c2824b0160c13d9b4db1cf82fb9fd9bfd
5
5
  SHA512:
6
- metadata.gz: f6230921b3db508c440b2c0b87f06edd830119c8bc74b2b1424aebdfebae886271913272110742486ea06c85aeb7ce6549c9a2275e3ae3ba4f0ae3a0877753e3
7
- data.tar.gz: 5621cfa3f3cf2c1389a2f912fd2cc7ad9ee728d2e881e2b1a8b74782568d2a4923f4769de34f2da9899c3f768aec83a2f8960f0aec768e32c29a531dc700347c
6
+ metadata.gz: 0434a463457cd69c9e79b3d77f5c61150c913a4a301b07e9e8ec7b79999548dedbf3dda07601261425579a2b3c6a0c69de733b66d841463ee56af5b8a96b8c24
7
+ data.tar.gz: a1281723a649ec8a3a44a244120cd9380db7717fac380f62747cbc608c18b0e739f5d5cd8edb2634b98a27f31a4aad6fac39f5696e57bfb0a1b5865fbf0a666c
data/README.md CHANGED
@@ -27,7 +27,7 @@ Esta gem facilita o acesso ao webservice do SEI!. Ela possui a implementação d
27
27
  Adicione esta linha no Gemfile da sua aplicação:
28
28
 
29
29
  ```ruby
30
- gem 'sei'
30
+ gem 'zei'
31
31
  ```
32
32
 
33
33
  E execute:
@@ -36,7 +36,7 @@ E execute:
36
36
 
37
37
  Ou instale através do seguinte comando:
38
38
 
39
- $ gem install sei
39
+ $ gem install zei
40
40
 
41
41
  ## Uso
42
42
 
@@ -0,0 +1,32 @@
1
+ module Sei
2
+
3
+ module Estruturas
4
+
5
+ class RetornoConsultarBloco < ::Valuable
6
+
7
+ has_value :id_bloco
8
+ has_value :unidade
9
+ has_value :usuario
10
+ has_value :descricao
11
+ has_value :tipo
12
+ has_value :estado
13
+ has_value :unidades_disponibilizacao
14
+ has_value :protocolos
15
+
16
+ def initialize(params)
17
+ self.id_bloco = params[:id_bloco]
18
+ self.unidade = params[:unidade]
19
+ self.usuario = params[:usuario]
20
+ self.descricao = params[:descricao]
21
+ self.tipo = params[:tipo]
22
+ self.estado = params[:estado]
23
+ self.unidades_disponibilizacao = params[:unidades_disponibilizacao]
24
+ self.protocolos = params[:protocolos]
25
+ initialize_attributes
26
+ end
27
+
28
+ end
29
+
30
+ end
31
+
32
+ end
data/lib/sei/servico.rb CHANGED
@@ -242,6 +242,19 @@ module Sei
242
242
  Sei::Estruturas::RetornoConsultarDocumento.new body
243
243
  end
244
244
 
245
+ def self.consultar_bloco(id_unidade, id_bloco, sin_retornar_protocolos = 'S')
246
+ message = {
247
+ SiglaSistema: Sei.configuration.sigla,
248
+ IdentificacaoServico: Sei.configuration.identificacao,
249
+ IdUnidade: id_unidade,
250
+ IdBloco: id_bloco,
251
+ SinRetornarProtocolos: sin_retornar_protocolos
252
+ }
253
+ response = Sei::Connection.instance.call :consultar_bloco, message: message
254
+ body = response.body[:consultar_bloco_response][:parametros]
255
+ Sei::Estruturas::RetornoConsultarBloco.new body
256
+ end
257
+
245
258
  end
246
259
 
247
260
  end
data/lib/sei/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sei
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/zei.rb CHANGED
@@ -24,6 +24,7 @@ require 'sei/estruturas/retorno_usuario'
24
24
  require 'sei/estruturas/retorno_list_usuarios'
25
25
  require 'sei/estruturas/retorno_consultar_procedimento'
26
26
  require 'sei/estruturas/retorno_consultar_documento'
27
+ require 'sei/estruturas/retorno_consultar_bloco'
27
28
 
28
29
  module Sei
29
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zei
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,6 +116,7 @@ files:
116
116
  - lib/sei/estruturas/procedimento.rb
117
117
  - lib/sei/estruturas/retorno_boolean.rb
118
118
  - lib/sei/estruturas/retorno_conclusao_processo.rb
119
+ - lib/sei/estruturas/retorno_consultar_bloco.rb
119
120
  - lib/sei/estruturas/retorno_consultar_documento.rb
120
121
  - lib/sei/estruturas/retorno_consultar_procedimento.rb
121
122
  - lib/sei/estruturas/retorno_geracao_bloco.rb
@@ -132,12 +133,12 @@ files:
132
133
  - lib/sei/version.rb
133
134
  - lib/zei.rb
134
135
  - zei.gemspec
135
- homepage:
136
+ homepage:
136
137
  licenses:
137
138
  - MIT
138
139
  metadata:
139
140
  allowed_push_host: https://rubygems.org
140
- post_install_message:
141
+ post_install_message:
141
142
  rdoc_options: []
142
143
  require_paths:
143
144
  - lib
@@ -152,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubygems_version: 3.0.1
156
- signing_key:
156
+ rubygems_version: 3.4.8
157
+ signing_key:
157
158
  specification_version: 4
158
159
  summary: Integração com a API do SEI.
159
160
  test_files: []