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 +4 -4
- data/README.md +2 -2
- data/lib/sei/estruturas/retorno_consultar_bloco.rb +32 -0
- data/lib/sei/servico.rb +13 -0
- data/lib/sei/version.rb +1 -1
- data/lib/zei.rb +1 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be2314dc3132d3d1eb03fcd01b4f18aa730a8b0d0ca4b3d26857f13133ff941d
|
4
|
+
data.tar.gz: 396b9467396c5ab0250ee5581004246c2824b0160c13d9b4db1cf82fb9fd9bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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
|
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
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.
|
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:
|
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.
|
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: []
|