genba-ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/circle.yml +7 -0
- data/lib/genba/client/keys.rb +2 -2
- data/lib/genba/key_black_list_request.rb +1 -1
- data/lib/genba/key_report_request.rb +1 -1
- data/lib/genba/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec93ba5a3b120e995614d4fc869cacac8c0f3722
|
4
|
+
data.tar.gz: 6c507669a8ac148f031ed113c42e6530abc5f5cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 130e8c65d54d05fe52f4fbb919d0c9ff6db190ff33b984945fbeb68263c28eb027ad91c9ca1be895f2acc5d8b83dab487205d05fea564f28b796c3ff375fe61e
|
7
|
+
data.tar.gz: 54732fd798c9c3aaee36dd038e3fc73088ea17119a1ac9ab518cb773972084e6c690f8ce4f17a8756a071caa000e8e3b0a9b39f270ff616dd735f8c023b17ad4
|
data/Gemfile.lock
CHANGED
data/circle.yml
CHANGED
data/lib/genba/client/keys.rb
CHANGED
@@ -38,8 +38,8 @@ module Genba
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def get_report_usage(keys = nil, headers = {})
|
41
|
-
|
42
|
-
|
41
|
+
raise 'ReportUsage keys should be array' unless keys.is_a?(Array)
|
42
|
+
raise 'ReportUseag keys should be a KeyReportRequest class' unless key_report_request?(keys)
|
43
43
|
payload = keys.map(&:to_genba_json_payload)
|
44
44
|
@client.rest_post_with_token('/keyReport', payload, headers)
|
45
45
|
end
|
@@ -26,6 +26,6 @@ class KeyReportRequest
|
|
26
26
|
ETailerSellingPriceNet: @e_tailer_selling_price_net,
|
27
27
|
ETailerSellingPriceGross: @e_tailer_selling_price_gross,
|
28
28
|
ETailerSellingPriceCurrencyCode: @e_tailer_selling_price_currency_code
|
29
|
-
}.
|
29
|
+
}.select { |_, v| !v.nil? }
|
30
30
|
end
|
31
31
|
end
|
data/lib/genba/version.rb
CHANGED