xsys 0.2.15 → 0.3.0
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 +7 -1
- data/lib/xsys/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ba931f38fe81884b85424bafa308391422a5f5
|
4
|
+
data.tar.gz: 4e69b9e655c51fe7145a56f195430ff15cf42485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f2ec92654a17d0bb82d1e5074a8a4291e8219663ba8e36cea24ea7b4c491b54981dc88f1c8916ef80a7d70e1c33a8eef2bf9f4cf19da6ba4eaeb9f3f11d15ad
|
7
|
+
data.tar.gz: 52c91ce998b5b661f88e23953890989b47558b38d73b0331637043a815d4f81a951ff9f58438749951487d9a46211d26faa6bd9d4b8ef4b6f85858a6054e2a58
|
data/CHANGELOG.md
CHANGED
data/lib/xsys/api.rb
CHANGED
@@ -22,7 +22,7 @@ module Xsys
|
|
22
22
|
get_request('/api/price_lists')[:body].map { |r| Model::PriceList.new(r) }
|
23
23
|
end
|
24
24
|
|
25
|
-
def self.
|
25
|
+
def self.search_products(filters={})
|
26
26
|
response = get_request('/api/products', filters)
|
27
27
|
|
28
28
|
if response[:headers][:link]
|
@@ -35,6 +35,12 @@ module Xsys
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def self.search_product_ids(filters={})
|
39
|
+
response = get_request('/api/product_ids', filters)
|
40
|
+
|
41
|
+
response[:body]['product_ids']
|
42
|
+
end
|
43
|
+
|
38
44
|
def self.get_product(product_id)
|
39
45
|
Model::Product.new(get_request("/api/products/#{product_id}")[:body])
|
40
46
|
end
|
data/lib/xsys/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xsys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matias Hick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|