rs4 0.2.13 → 0.2.14
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 +4 -4
- data/lib/rs4/document.rb +0 -30
- data/lib/rs4/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a5fa2a84fe9ba420f0fa1290e8db8924d01b8b072f2d1ab348e57da66108063
|
|
4
|
+
data.tar.gz: 67aca3df9920d1db59fe4b5285047d903022f4f3b81bef2716afd9498a5e14b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db4a76f516321f6aa578bd298d9a03ee9eaa25279a6a9406afcb5eb72e50df94633079da150f60aae042aa21574789e914d5d88efa416f6326946509698c3dfb
|
|
7
|
+
data.tar.gz: ceb3c9d858bd45e6924f0d3fcbb9989a168326060e086e215ba567c63d8bf9833e0712dd26fd006ae313d20f7da6578499b6034a0c962b543c3666727a2334c1
|
data/lib/rs4/document.rb
CHANGED
|
@@ -112,36 +112,6 @@ module RS4
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
def post_force_complete(document_guid)
|
|
116
|
-
return unless document_guid.present?
|
|
117
|
-
|
|
118
|
-
path = "/v1/documents/#{document_guid}/force_complete"
|
|
119
|
-
|
|
120
|
-
response = RS4.configuration.request_handler.execute(path, :post)
|
|
121
|
-
|
|
122
|
-
unless response.is_a?(RS4::Error) || response.nil? # .class == Net::HTTPOK
|
|
123
|
-
raw_document = response.dig(:document) # JSON.parse(response.body, symbolize_names: true)
|
|
124
|
-
|
|
125
|
-
# Document.new(raw_document[:document])
|
|
126
|
-
Document.new(raw_document) if raw_document
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
def get_force_complete(document_guid)
|
|
131
|
-
return unless document_guid.present?
|
|
132
|
-
|
|
133
|
-
path = "/v1/documents/#{document_guid}/force_complete"
|
|
134
|
-
|
|
135
|
-
response = RS4.configuration.request_handler.execute(path, :get)
|
|
136
|
-
|
|
137
|
-
unless response.is_a?(RS4::Error) || response.nil? # .class == Net::HTTPOK
|
|
138
|
-
raw_document = response.dig(:document) # JSON.parse(response.body, symbolize_names: true)
|
|
139
|
-
|
|
140
|
-
# Document.new(raw_document[:document])
|
|
141
|
-
Document.new(raw_document) if raw_document
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
|
|
145
115
|
def get_documents
|
|
146
116
|
path = '/public/v1/documents'
|
|
147
117
|
response = RS4.configuration.request_handler.execute(path, :get)
|
data/lib/rs4/version.rb
CHANGED