lumidatum_client 0.1.5 → 0.1.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lumidatum_client.rb +6 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9bd742fc51b3031c4231e8e93769b2831ac9f38
4
- data.tar.gz: 123d79921099484d690f8ce2b9d23453e031e494
3
+ metadata.gz: c306ffd9740fc10d384dceba599ce3e81a5bb30c
4
+ data.tar.gz: c27fcd8bf2fa178f5f5902b34ff01839ac473667
5
5
  SHA512:
6
- metadata.gz: 4ecfe0c2ce8c695ade4682d8c5800a8309fc5b837739c4d8cc3543e3f3d1b0c8618499addbdfeb7266f47f6af10f4d7844b947b6d15467cf94381a9b4f1fd493
7
- data.tar.gz: fc70e40633ff1039d80b2faacfc5061d5947a485ec7c405bf079abb703a30e80d88a4f3b0467464bd0c0d9664fc51aa1ffc53e5ff4e4efb337902e96d0a1a6bb
6
+ metadata.gz: 8af23fd73bc429fdabc34c4eccb635d306c3e0a13dc780118708ff39275bbae4fc01a3e260d08c220b7db35ed5ea590e8675714b42e7d669b7c2c95796925fa0
7
+ data.tar.gz: 98b02adeb1d540f6fe4c331e22c33574ce67d2938a4d72ee6df787797599a212bc4581dd1f1615189a0ccd25a9f2fbefc9003af4f01e13472e9357d3c62e05b4
@@ -91,10 +91,10 @@ class LumidatumClient
91
91
  end
92
92
 
93
93
  # File download
94
- def getLatestLTVReport(download_file_path, model_id: nil, zipped: true, stream_download: true)
94
+ def getLatestLtvReport(download_file_path, sub_type: nil, model_id: nil, zipped: true, stream_download: true)
95
95
  model_id = _getModelIdOrError(model_id)
96
96
 
97
- latest_key_name = getAvailableReports("LTV", model_id, zipped: zipped)
97
+ latest_key_name = getAvailableReports("LTV", sub_type, model_id, zipped: zipped)
98
98
 
99
99
  presigned_response_object = getPresignedResponse(latest_key_name, model_id, is_download: true)
100
100
 
@@ -106,10 +106,10 @@ class LumidatumClient
106
106
  return report_response
107
107
  end
108
108
 
109
- def getLatestSegmentationReport(download_file_path, model_id: nil, zipped: true, stream_download: true)
109
+ def getLatestSegmentationReport(download_file_path, sub_type: nil, model_id: nil, zipped: true, stream_download: true)
110
110
  model_id = _getModelIdOrError(model_id)
111
111
 
112
- latest_key_name = getAvailableReports("SEG", model_id, zipped: zipped)
112
+ latest_key_name = getAvailableReports("SEG", sub_type, model_id, zipped: zipped)
113
113
  presigned_response_object = getPresignedResponse(latest_key_name, model_id, is_download: true)
114
114
 
115
115
  report_response = @http_client.get(presigned_response_object["url"])
@@ -120,8 +120,8 @@ class LumidatumClient
120
120
  return report_response
121
121
  end
122
122
 
123
- def getAvailableReports(report_type, model_id, zipped: true, latest: true)
124
- url_query_parameters = {:model_id => model_id, :report_type => report_type, :zipped => zipped, :latest => true}
123
+ def getAvailableReports(report_type, sub_type, model_id, zipped: true, latest: true)
124
+ url_query_parameters = {:model_id => model_id, :report_type => report_type, :sub_type => sub_type, :zipped => zipped, :latest => true}
125
125
  list_reports_response = api("GET", "api/data", url_query_parameters, model_id, deserialize_response: false)
126
126
  list_reports_response_object = JSON.parse(list_reports_response.body)
127
127
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumidatum_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-07 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient