luma 0.0.3 → 0.0.4

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: b2e1eb5f86c6412e81ba1ef33eece2d93a4957779cff5896d39f47245f1dce0e
4
- data.tar.gz: 6ce4c9f8fc440cbc84f1bb25236eb851e6afa36de504c0cf2390db9af362c0f3
3
+ metadata.gz: 9c4e179f650da2d209031f9ed57933d2dac374805c6664ac89c89300031103ff
4
+ data.tar.gz: 47bb4a75845df4cf3df393320d5dc8af6c662cfebb368454e17c88f83be45b18
5
5
  SHA512:
6
- metadata.gz: 27a8ff325fb761b1debbc632d46745efcdb71401dc31982a8877b9150c7d5a794c1b2ef0f08e9c6a48d162cee19eb6e59c74b80a537debd0a2bf72c019f49431
7
- data.tar.gz: 7683fa09e2371979e87955b0d7f3c7c8fe30ac2a74fb4f375445d6f808102011aedb2ffaa25722660cc183ccbfb044a7624cd79f0617cd15dcd75ed507009182
6
+ metadata.gz: f23b67e267845f151baf2463eadc176ed48fe126184c7722a258ad6ccbb83e2fcc2fa6fa77abc9859fb031c42b9a780b3a7db2a7ec2d5a4c3224d1dbf2febba8
7
+ data.tar.gz: 35c0833ce16929953ae46fd13bd8e08892f932ccef57e02b954d02d0c350f2c0bc560816b026c57b52a47acb39b7b41858868f99357678fd6d49124fbdbf141b
data/CHANGELOG.md CHANGED
@@ -1,4 +1,29 @@
1
+ # Changelog
2
+
3
+ ## [0.0.4] - 2021-09-7
4
+
5
+ ### Added
6
+
7
+ - Added API Access for creating a facility (POST)
8
+
9
+ ## [0.0.3] - 2021-08-30
10
+
11
+ ### Changed
12
+
13
+ - Models to have better inheritance and DRYer code
14
+
15
+ ### Added
16
+
17
+ - Added API access for creating a provider (POST)
18
+
19
+ ## [0.0.2] - 2021-08-26
20
+
21
+ ### Added
22
+
23
+ - Added API access for creating and finding appointment types (GET and POST)
24
+
1
25
  ## [0.0.1] - 2021-05-28
26
+
2
27
  - Initial Create
3
28
 
4
29
  [0.1.1]: https://github.com/WeInfuse/luma/compare/0.1.0...0.1.1
@@ -2,14 +2,8 @@ module Luma
2
2
  class AppointmentType < Connection
3
3
  APPOINTMENT_TYPE_ENDPOINT = '/api/appointmentTypes'.freeze
4
4
 
5
- include HTTParty
6
-
7
5
  base_uri 'https://api.lumahealth.io/'.freeze
8
6
 
9
- headers 'Content-Type' => 'application/json'
10
-
11
- format :json
12
-
13
7
  def view_appointment_types(endpoint: APPOINTMENT_TYPE_ENDPOINT, auth: true, name: nil, description: nil, debug_output: $stdout)
14
8
  self.add_headers_and_body if auth
15
9
 
@@ -0,0 +1,15 @@
1
+ module Luma
2
+ class Facilities < Connection
3
+ FACILITY_ENDPOINT = '/api/facilities'.freeze
4
+
5
+ base_uri 'https://api.lumahealth.io/'.freeze
6
+
7
+ def create_facility(endpoint: FACILITY_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout)
8
+ @body = body
9
+ self.add_headers_and_body if auth
10
+
11
+ result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
12
+ { result: result, headers: @headers }
13
+ end
14
+ end
15
+ end
data/lib/luma/provider.rb CHANGED
@@ -2,14 +2,8 @@ module Luma
2
2
  class Provider < Connection
3
3
  PROVIDER_ENDPOINT = '/api/providers'.freeze
4
4
 
5
- include HTTParty
6
-
7
5
  base_uri 'https://api.lumahealth.io/'.freeze
8
6
 
9
- headers 'Content-Type' => 'application/json'
10
-
11
- format :json
12
-
13
7
  def create_provider(endpoint: PROVIDER_ENDPOINT, name: "", npi: nil, headers: {}, auth: true, verb: :post)
14
8
  @body = {
15
9
  name: name,
data/lib/luma/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Luma
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
data/lib/luma.rb CHANGED
@@ -6,6 +6,7 @@ require 'luma/connection'
6
6
  require 'luma/authentication'
7
7
  require 'luma/provider'
8
8
  require 'luma/appointment_type'
9
+ require 'luma/facilities'
9
10
 
10
11
  module Luma
11
12
  class Configuration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angela Rodriguez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -144,6 +144,7 @@ files:
144
144
  - lib/luma/appointment_type.rb
145
145
  - lib/luma/authentication.rb
146
146
  - lib/luma/connection.rb
147
+ - lib/luma/facilities.rb
147
148
  - lib/luma/luma_exception.rb
148
149
  - lib/luma/provider.rb
149
150
  - lib/luma/version.rb