graph_decorator 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graph_decorator.rb +6 -6
- data/lib/graph_decorator/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: c94e2dad70fdf02c5dd17c53f52ca43f00cd99f0
|
4
|
+
data.tar.gz: c6da0262d5994d234c7b4ddb5769c074ba17f1c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec4f69e722e84789a74108798032ef7f1d5410cb0700e8758c8878799089c9237a92d3a3f2e5a3be47ad7cefbc7eda4b6cd1ebbe8039a3e693f0a39bb4b7ef5
|
7
|
+
data.tar.gz: 84a4e02369d17be1a0325264b8e0737138b86fef037de5ede4a630abf9bee49b0e670f0084557ca2911b0c60afe30ad479b8024fc5fb506ce2c741464bf2e881
|
data/lib/graph_decorator.rb
CHANGED
@@ -224,18 +224,18 @@ class ReturningCustomers < GraphDecoration
|
|
224
224
|
@y_name_1 = "New Cusomtomers"
|
225
225
|
@y_name_2 = "Frequent Customers"
|
226
226
|
@y_name_3 = "Total no of sign in count in this website"
|
227
|
-
@
|
228
|
-
@
|
227
|
+
@cust_new = 0
|
228
|
+
@customer_return = 0
|
229
229
|
@new_customer_count = Member.select("sign_in_count").group_by{|o| o.sign_in_count}.keys
|
230
230
|
@new_customer_count.each do |cust|
|
231
231
|
if cust > 3
|
232
|
-
|
232
|
+
@customer_return += 1
|
233
233
|
else
|
234
|
-
|
234
|
+
@cust_new += 1
|
235
235
|
end
|
236
236
|
end
|
237
|
-
@y_data_1 = @
|
238
|
-
@y_data_2 = @
|
237
|
+
@y_data_1 = @cust_new
|
238
|
+
@y_data_2 = @customer_return
|
239
239
|
@x_name = ['new customer', 'old customer']
|
240
240
|
@y_data_3 = Member.sum("sign_in_count")
|
241
241
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graph_decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kishore Kumar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|