updox 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/updox/models/appointment.rb +0 -4
- data/lib/updox/models/model.rb +13 -4
- data/lib/updox/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6049aac6b73ee5ff489628158400adeb752a25f5688b7edf199f3e29a3adcefe
|
4
|
+
data.tar.gz: c4dfa73f09d4ee510f2d8cf7b6b7a4ae63ab63ac9df61dbfdccec437b8ad6f89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58056e6ae6d7382fc1c47ee8099ced74f57edc6e1804057535853ad4d9ebc4af9acb5d51afbc984da5e454a8635f1631eb0f52673b240d3da53748b03e1e648c
|
7
|
+
data.tar.gz: '09d340be087a5a2b25dbce98459f9e4f5068f2564cd1c2b3b001130af04d292bb6a649644bdf13a87e298c353477ba0b52398a5ce7e18769769ffa2297a01deb'
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ 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
|
+
## [1.0.2] - [2020-12-29]
|
8
|
+
### Fixed
|
9
|
+
- Bug where we serialized an `updox_status`
|
10
|
+
|
7
11
|
## [1.0.1] - [2020-03-27]
|
8
12
|
### Added
|
9
13
|
- Patient#reminderMethodId to set reminder preferences
|
@@ -102,6 +106,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
102
106
|
### Added
|
103
107
|
- Initial Release with ability to ping Updox api
|
104
108
|
|
109
|
+
[1.0.2]: https://github.com/WeInfuse/updox/compare/v1.0.1...HEAD
|
105
110
|
[1.0.1]: https://github.com/WeInfuse/updox/compare/v1.0.0...v1.0.1
|
106
111
|
[1.0.0]: https://github.com/WeInfuse/updox/compare/v0.12.0...v1.0.0
|
107
112
|
[0.12.0]: https://github.com/WeInfuse/updox/compare/v0.11.0...v0.12.0
|
data/lib/updox/models/model.rb
CHANGED
@@ -7,30 +7,39 @@ module Updox
|
|
7
7
|
include Hashie::Extensions::IgnoreUndeclared
|
8
8
|
include Hashie::Extensions::IndifferentAccess
|
9
9
|
|
10
|
+
attr_writer :updox_status
|
11
|
+
|
10
12
|
LIST_TYPE = 'undefined'
|
11
13
|
LIST_NAME = 'models'
|
12
14
|
ITEM_TYPE = 'model'
|
13
15
|
|
14
16
|
property :item, required: false
|
15
17
|
property :items, required: false
|
16
|
-
property :updox_status, default: {}
|
17
18
|
|
18
19
|
def successful?
|
19
|
-
|
20
|
+
@updox_status['successful']
|
20
21
|
end
|
21
22
|
|
22
23
|
def response_code
|
23
|
-
|
24
|
+
@updox_status['responseCode']
|
24
25
|
end
|
25
26
|
|
26
27
|
def response_message
|
27
|
-
|
28
|
+
@updox_status['responseMessage']
|
29
|
+
end
|
30
|
+
|
31
|
+
def updox_status
|
32
|
+
@updox_status ||= {}
|
28
33
|
end
|
29
34
|
|
30
35
|
def error_message
|
31
36
|
"#{response_code}: #{response_message}"
|
32
37
|
end
|
33
38
|
|
39
|
+
def as_json(options = nil)
|
40
|
+
self.to_h
|
41
|
+
end
|
42
|
+
|
34
43
|
def self.request(**kwargs)
|
35
44
|
from_response(UpdoxClient.connection.request(kwargs))
|
36
45
|
end
|
data/lib/updox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: updox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0.9'
|
131
|
-
description:
|
131
|
+
description:
|
132
132
|
email:
|
133
133
|
- mike.crockett@weinfuse.com
|
134
134
|
executables: []
|
@@ -166,7 +166,7 @@ licenses:
|
|
166
166
|
- MIT
|
167
167
|
metadata:
|
168
168
|
allowed_push_host: https://rubygems.org
|
169
|
-
post_install_message:
|
169
|
+
post_install_message:
|
170
170
|
rdoc_options: []
|
171
171
|
require_paths:
|
172
172
|
- lib
|
@@ -181,9 +181,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubyforge_project:
|
184
|
+
rubyforge_project:
|
185
185
|
rubygems_version: 2.7.6
|
186
|
-
signing_key:
|
186
|
+
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Ruby wrapper for the Updox API
|
189
189
|
test_files: []
|