nebula_ruby 0.1.0 → 0.2.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: b1dcc930972917bb455e1ad62248a767dffc83ff
4
- data.tar.gz: 3128c5ff6452646f5ba0c22faf6706597bbdbc54
3
+ metadata.gz: 07df50de26a1c256d05f9659bf4eb633d3d5a4b6
4
+ data.tar.gz: 3420e24d40cb30cecb1d74d5377a6dcfc26d2438
5
5
  SHA512:
6
- metadata.gz: fca1265e232bfff95d45b926dbdf98a4e307e47d96b61baea2e12b29ecfea32addbc69f7bbf98f868205a71e78ceaa985a9c15e97f55e949b8f8b1a9ab844960
7
- data.tar.gz: ee4d0aaf5354e569f80f3eabc33a817d340a2024a686843e761884f99da6cebb734f1119055e867f355ffec7f8c12a9c8bb8b72c41a23dfcd491f7727f226ecf
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).
@@ -0,0 +1,16 @@
1
+ module Nebula
2
+ class Location
3
+ def initialize(client)
4
+ @client = client
5
+ end
6
+
7
+ def all
8
+ client.request(:get, '/Nebula/rest/localidades/')
9
+ end
10
+
11
+ private
12
+ def client
13
+ @client
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ module Nebula
2
+ class Provider
3
+ def initialize(client)
4
+ @client = client
5
+ end
6
+
7
+ def all
8
+ client.request(:get, '/Nebula/rest/prestadoresSalud/')
9
+ end
10
+
11
+ private
12
+ def client
13
+ @client
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Nebula
2
- VERSION = "0.1.0"
2
+ VERSION = '0.2.0'
3
3
  end
data/lib/nebula.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'nebula/version'
2
2
  require 'nebula/client'
3
3
  require 'nebula/token'
4
+ require 'nebula/location'
5
+ require 'nebula/provider'
4
6
 
5
7
  module Nebula
6
8
  end
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/amedrz/cumulus_ruby"
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.1.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-07 00:00:00.000000000 Z
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/amedrz/cumulus_ruby
162
+ homepage: https://github.com/ecaresoft/nebula_ruby
161
163
  licenses:
162
164
  - MIT
163
165
  metadata: