xsys 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xsys/api.rb +10 -0
- data/lib/xsys/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: 030def67848041ef03d9609e1e7a18b4f25b7e94
|
4
|
+
data.tar.gz: 7a4bb8ac63b4bafb048b815d8e8da05cbb96a3e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d82ebb9b542c53ffd391def3e0cb0353455c09e1836d401a8a36ba426737c2b0158044b9c6e8e20968d15823fe678eab481603cd2948650691f577790840aa4
|
7
|
+
data.tar.gz: 5f0debb76bdead18a912c488730cb4010b8f4e0a757cceb7994eff35dfb7c56fec5a9e58cf617d886f9b3abf8472336efa39d9492a80b2de9323fb396098357f
|
data/CHANGELOG.md
CHANGED
data/lib/xsys/api.rb
CHANGED
@@ -163,6 +163,16 @@ module Xsys
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
+
def self.get_stock_reserve(code)
|
167
|
+
response_body = get_request("/stock_reserves/#{code}")[:body]
|
168
|
+
|
169
|
+
if response_body == 'null'
|
170
|
+
nil
|
171
|
+
else
|
172
|
+
Model::StockReserve.new(response_body)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
166
176
|
def self.search_stock_reserves(filters={})
|
167
177
|
get_request('/stock_reserves', filters)[:body].map { |x| Model::StockReserve.new(x) }
|
168
178
|
end
|
data/lib/xsys/version.rb
CHANGED