sticapi_client 3.1.7 → 3.1.8

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: 6d91b2bc651345e4130109b2754e07311e3085d0c89a184855631e1af427bf12
4
- data.tar.gz: '02792c9054d796a042ed0d6294df77104febe8117077fc8802b6fa399bd27ff2'
3
+ metadata.gz: 3cca32eb7b4677d4370f0d7a0886822169046933e49d4f4ee9b3d1c2ebb65628
4
+ data.tar.gz: fe620b8bb1abc8fa635ebabc051794bdd1189f09fd8d35d8f05caf7d4633169c
5
5
  SHA512:
6
- metadata.gz: 7e3b636e9f174116102458578674928c1869593fcdcba05421fcdb57ef9d1f502f02ba3f23a1160f35df42da95d02506eee76213b12dae2e02b01947f538e6a9
7
- data.tar.gz: 3daf2cafda323fd2f38d2fa3ba621ee46c98ef08ce26763a00e00bf8d195f6865666acb0c7297b1cfdef3549c00bc1439ef31d3e9d60829c6b552b3d40bef517
6
+ metadata.gz: 5c7b6a6995ba6dc57107a15592b33ed6ea9356c7a521ced7f6e5797a389868bf301ed55eeeed7e1c9d7468436091cc20c659f40eb713f99b07d89ea452e0288e
7
+ data.tar.gz: aa339f26af988c0db222d543abec0cec6c9d72ae53fb461ffb65c2fa81a3c65074a1ef2ee7f1712c570ce60f3b5440d42071e2bfdc00c37a4c3d2f7f48cb3ca7
@@ -4,17 +4,25 @@ module SticapiClient
4
4
  # Retorno [JSON] Quantidade de oficiais de justiça em cada unidade
5
5
  # campos: [id total_oficiais caminho descricao cidade cidade_id cidade_ibge]
6
6
  def self.oficiais_por_unidade
7
- Sticapi::SticapiClient.instance.sticapi_request("/transparencia/oficiais_por_unidade", kind: 'get')
7
+ Sticapi::SticapiClient.instance.sticapi_request("/transparencia/oficiais_por_unidade", kind: "get")
8
8
  end
9
-
9
+
10
10
  # Buscar a lista de processos sobrestados no eTJPI
11
11
  # Parâmetro ibge [String] Código IBGE da cidade (padrão 2211001, Teresina)
12
12
  # Retorno [JSON] Relatório do Município
13
13
  # campos: [dados_intranet dados_themis]
14
14
  def self.municipio_info(options = {})
15
- options[:kind] = 'get'
16
- options[:ibge] ||= '2211001'
15
+ options[:kind] = "get"
16
+ options[:ibge] ||= "2211001"
17
17
  Sticapi::SticapiClient.instance.sticapi_request("/transparencia/municipio_info", options)
18
18
  end
19
+
20
+ # Buscar informações da unidade na base do transparência
21
+ # Parâmetro id [Integer] ID da unidade
22
+ # Retorno [JSON] Dados da unidade
23
+ def self.unidade(options = {})
24
+ options[:kind] = "get"
25
+ Sticapi::SticapiClient.instance.sticapi_request("/transparencia/unidade", options)
26
+ end
19
27
  end
20
28
  end
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "3.1.7"
2
+ VERSION = "3.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.7
4
+ version: 3.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails