nebula_ruby 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -1
- data/lib/nebula/location.rb +16 -0
- data/lib/nebula/provider.rb +16 -0
- data/lib/nebula/version.rb +1 -1
- data/lib/nebula.rb +2 -0
- data/nebula_ruby.gemspec +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07df50de26a1c256d05f9659bf4eb633d3d5a4b6
|
4
|
+
data.tar.gz: 3420e24d40cb30cecb1d74d5377a6dcfc26d2438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 491f394fd64f57640d2cb244a1994407aafc3de98de267f8c8906417977734924c8470fa6600f7960c503788873e14cfeccf09a2fb945a34a9ce41d0bfc47517
|
7
|
+
data.tar.gz: 43f03801be8dfbc6e1b2e7f7b1d1b839a1623914090f5bd668b575d9aab81847f33a47e9791a281c56cce8fa171a4e9a1774f9a14cba8cc93f3d71d525e4dc2e
|
data/README.md
CHANGED
@@ -35,12 +35,18 @@ Create a token.
|
|
35
35
|
```ruby
|
36
36
|
attributes = {
|
37
37
|
empleado: {
|
38
|
+
curp: 'SIFU123',
|
38
39
|
noEmpleado: '123',
|
39
40
|
noEmpresa: '123',
|
40
41
|
noCodificacion: '1',
|
41
|
-
nombre: 'Sifu de la Rosa'
|
42
|
+
nombre: 'Sifu de la Rosa',
|
43
|
+
localidad: 'Localidad 01'
|
42
44
|
},
|
45
|
+
tipo: '1',
|
46
|
+
creadoPor: '3',
|
43
47
|
msj: 'Para una cita X'
|
48
|
+
diagnostico: '000',
|
49
|
+
prestadorServicios: 'Prueba'
|
44
50
|
}
|
45
51
|
|
46
52
|
token = Nebula::Token.new(client)
|
@@ -54,6 +60,24 @@ response = token.status('X0123456')
|
|
54
60
|
response['status']
|
55
61
|
```
|
56
62
|
|
63
|
+
### Location
|
64
|
+
|
65
|
+
Retrieve location list
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
locations = Nebula::Location.new(client)
|
69
|
+
locations.all
|
70
|
+
```
|
71
|
+
|
72
|
+
### Provider
|
73
|
+
|
74
|
+
Retrieve providers list
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
providers = Nebula::Provider.new(client)
|
78
|
+
providers.all
|
79
|
+
```
|
80
|
+
|
57
81
|
## License
|
58
82
|
|
59
83
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/nebula/version.rb
CHANGED
data/lib/nebula.rb
CHANGED
data/nebula_ruby.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["amed.rdz@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Nebula API Ruby Wrapper}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/ecaresoft/nebula_ruby"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nebula_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amed Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -154,10 +154,12 @@ files:
|
|
154
154
|
- bin/setup
|
155
155
|
- lib/nebula.rb
|
156
156
|
- lib/nebula/client.rb
|
157
|
+
- lib/nebula/location.rb
|
158
|
+
- lib/nebula/provider.rb
|
157
159
|
- lib/nebula/token.rb
|
158
160
|
- lib/nebula/version.rb
|
159
161
|
- nebula_ruby.gemspec
|
160
|
-
homepage: https://github.com/
|
162
|
+
homepage: https://github.com/ecaresoft/nebula_ruby
|
161
163
|
licenses:
|
162
164
|
- MIT
|
163
165
|
metadata:
|