luma 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b1c0cd76f2a756cf7bc743c37bff453c3ec10296f0b454b76666a8e4f55a858
4
- data.tar.gz: 6fff9b6757c64c9449f64f54afaafa1bac2f183a6b7452dce7e35eaaf1d1c3b6
3
+ metadata.gz: 7ba2fd974740d61c1665cefa352759fb62aa9a104740362a419bf105891faa14
4
+ data.tar.gz: c1557993c05a3b72da33217b5f2ec919ee2effdce2f33c0c7125a60571766c17
5
5
  SHA512:
6
- metadata.gz: e06a22f14e2f101dafd0669d60f1ec04a8e924ab0cdf8576faf9aa21f661433d05ac971cb590fdd8bb019519bd84d4c0a6e7fa29515b8d850c93f2abd45dd035
7
- data.tar.gz: 0f9b502a82e0ee14568d8cc7b15b7e09c8b80003b148506a1e04a2c299169686411ee603b735f3584e58d3435fc70fe353554c2bd51d3a6d02df589faebb71b4
6
+ metadata.gz: e03019b01901ac0718cebd31ebcce588707ac84459f29031b9a6b006a9e8a1847a88908754b9620e19720d634e7b54f5b703d103d4e27884ee22447b4ac8973a
7
+ data.tar.gz: 9d2b8aaba0b48ef57c17a6b51d0257af898753c664ed9502111125dfc6bcb35e0206d5e8b0756a5254fb45bb38550c72a140b29bfe3bf144acc01ebc490c866b
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.1] - 2021-11-16
8
+
9
+ ### Changed
10
+
11
+ - Added API access for updating an appointment (PUT)
12
+
7
13
  ## [0.1.0] - 2021-11-10
8
14
 
9
15
  ### Changed
@@ -63,6 +69,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
63
69
 
64
70
  - Initial Create
65
71
 
72
+ [0.1.1]: https://github.com/WeInfuse/luma/compare/v0.1.0...v0.1.1
66
73
  [0.1.0]: https://github.com/WeInfuse/luma/compare/v0.0.8...v0.1.0
67
74
  [0.0.8]: https://github.com/WeInfuse/luma/compare/v0.0.7...v0.0.8
68
75
  [0.0.7]: https://github.com/WeInfuse/luma/compare/v0.0.6...v0.0.7
data/README.md CHANGED
@@ -81,6 +81,15 @@ body = Luma::Models::Appointment.new(
81
81
  Luma::Appointment.new(email: email, password: password).create_appointment(body: body)
82
82
  ```
83
83
 
84
+ ### Update Appointment
85
+ ```ruby
86
+ body = {
87
+ appt_duration: '60'
88
+ }
89
+
90
+ Luma::Appointment.new(email: email, password: password).update_appointment('appointment_id', body: body)
91
+ ```
92
+
84
93
  ## Development
85
94
 
86
95
  ### Prep
@@ -10,5 +10,14 @@ module Luma
10
10
 
11
11
  self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
12
12
  end
13
+
14
+ def update_appointment(appt_identifier, endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :put, debug_output: $stdout)
15
+ @body = body
16
+ self.add_headers_and_body if auth
17
+
18
+ endpoint = "#{endpoint}/#{appt_identifier}"
19
+
20
+ self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
21
+ end
13
22
  end
14
23
  end
data/lib/luma/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Luma
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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.1.0
4
+ version: 0.1.1
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-11-10 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.1.4
192
+ rubygems_version: 3.0.3
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Ruby wrapper for the Luma Health API