xsys 0.6.5 → 0.7.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/model/shop.rb +17 -3
- 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: 97ad736d57f0b50408389a65e4fce91239f9039a
|
4
|
+
data.tar.gz: ba46e64c98665753b61da0a8eeb6a79e43252d85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9eaad58b23b554c968d571cdce6e124a87fca90f9769df304418e268c2f498da2c85938e904fe96c30755d362503128f42da628f3129681466533e4aa9dace1
|
7
|
+
data.tar.gz: 5281ee738c01daacc1d6df20024f6b81755966850e8410b62d9df536a30d5fb07fc9714dff1f3840a28b3a75c0551f6e787954ee101f06509e0209f2b4b701e7
|
data/CHANGELOG.md
CHANGED
data/lib/xsys/model/shop.rb
CHANGED
@@ -3,7 +3,9 @@ module Xsys
|
|
3
3
|
class Shop
|
4
4
|
def self.attr_list
|
5
5
|
[:id, :code, :name, :stock_description, :commercial,
|
6
|
-
|
6
|
+
:virtual, :stockable, :has_target, :service, :physical_shop_code,
|
7
|
+
:position, :has_stock_control, :has_exhibition, :stock_sellable,
|
8
|
+
:stock_sellable, :enabled, :physical_shop_id, :last_update]
|
7
9
|
end
|
8
10
|
|
9
11
|
attr_reader *attr_list
|
@@ -34,8 +36,20 @@ module Xsys
|
|
34
36
|
service == true
|
35
37
|
end
|
36
38
|
|
37
|
-
def
|
38
|
-
|
39
|
+
def has_target?
|
40
|
+
has_target == true
|
41
|
+
end
|
42
|
+
|
43
|
+
def has_exhibition?
|
44
|
+
has_exhibition == true
|
45
|
+
end
|
46
|
+
|
47
|
+
def stock_sellable?
|
48
|
+
stock_sellable == true
|
49
|
+
end
|
50
|
+
|
51
|
+
def enabled?
|
52
|
+
enabled == true
|
39
53
|
end
|
40
54
|
|
41
55
|
private
|
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.7.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: 2016-
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|