medical_strategy 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/medical_strategy/version.rb +1 -1
- data/lib/medical_strategy.rb +11 -11
- 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: 452a072e1dbc44797d9af5872b7309f8e3f05b49
|
4
|
+
data.tar.gz: 4b301343b5949f61131ae333ad800247b4ebe837
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18faee0fbd39c58757973abf44da986966adaa17a3084e1a1abf5feb4552eecb41b9c1932ffc2f6d33cbb90ccd08b9bdf3634933bec4c46fafc7354925b6aa15
|
7
|
+
data.tar.gz: f3c41da1649690642a37091ca04fbe69f7a21817dd31c5c17452136cfbac8101750eabd982c17d7399950f5b7f6f605238d9e3b15d6b2fbf49ea74d9fe6ed1ec
|
data/lib/medical_strategy.rb
CHANGED
@@ -28,21 +28,21 @@ class MediHigh
|
|
28
28
|
#@medical_confirmation = medical.@mconfirmation
|
29
29
|
|
30
30
|
@product_allergic_1.each do |prod|
|
31
|
-
@customer_data[prod.id] = "Hi,"
|
31
|
+
@customer_data[prod.id] = "Hi,How's your health. "
|
32
32
|
if (@medical_confirmation.disease == "yes")
|
33
33
|
@customer_data[prod.id] << " We care a lot for you, Please consult with doctor before having pizza's. Since, you have disease already which is prone to this."
|
34
34
|
else
|
35
|
-
@customer_data[prod.id] << "
|
35
|
+
@customer_data[prod.id] << " Notice: Your are having high medical condition. "
|
36
36
|
if (@medical_confirmation.foodHabit == prod.foodType)
|
37
37
|
@customer_data[prod.id] << " This is your favorite food type."
|
38
38
|
if (@medical_confirmation.allergens == prod.allergens) #&& @medical_confirmation.userName == @user_medical_check.firstName)
|
39
39
|
@customer_data[prod.id] << " But You must choose different food. Since this is allergic to you."
|
40
40
|
else
|
41
|
-
@customer_data[prod.id] << " Good Choice."
|
41
|
+
@customer_data[prod.id] << " That's a Good Choice."
|
42
42
|
if(prod.calorie>250)
|
43
43
|
@customer_data[prod.id] << " Please avoid to consume. Your health condition doesn't permit high calories."
|
44
44
|
else
|
45
|
-
@customer_data[prod.id] << " Please avoid to consume frequently to burn your calories. "
|
45
|
+
@customer_data[prod.id] << " Please avoid to consume frequently and do frequent exercise to burn your calories. "
|
46
46
|
end
|
47
47
|
end
|
48
48
|
else
|
@@ -69,11 +69,11 @@ class MediMed
|
|
69
69
|
#@medical_confirmation = medical.@mconfirmation
|
70
70
|
|
71
71
|
@product_allergic_2.each do |prod|
|
72
|
-
@customer_data[prod.id] = "Hi,
|
72
|
+
@customer_data[prod.id] = "Hi, "
|
73
73
|
if (@medical_confirmation.disease == "yes")
|
74
74
|
@customer_data[prod.id] << " We care a lot for you, Please consult doctor before having pizza's. Since, you have disease already which is prone to this."
|
75
75
|
else
|
76
|
-
@customer_data[prod.id] << "
|
76
|
+
@customer_data[prod.id] << " How's your health."
|
77
77
|
if (@medical_confirmation.foodHabit == prod.foodType)
|
78
78
|
@customer_data[prod.id] << " This is your favorite food type."
|
79
79
|
if (@medical_confirmation.allergens == prod.allergens) #&& @medical_confirmation.userName == @user_medical_check.firstName)
|
@@ -83,7 +83,7 @@ class MediMed
|
|
83
83
|
if(prod.calorie>250)
|
84
84
|
@customer_data[prod.id] << " Reminder: High calories to consume for your health condition."
|
85
85
|
else
|
86
|
-
@customer_data[prod.id] << " You're medical condition is average and burn your calories accordingly."
|
86
|
+
@customer_data[prod.id] << " You're medical condition is average and do frequent excersie to burn your calories accordingly."
|
87
87
|
end
|
88
88
|
end
|
89
89
|
else
|
@@ -107,11 +107,11 @@ class MediLow
|
|
107
107
|
|
108
108
|
def alltogether
|
109
109
|
@product_allergic_3.each do |prod|
|
110
|
-
@customer_data[prod.id] = "Hi,
|
110
|
+
@customer_data[prod.id] = "Hi, "
|
111
111
|
if (@medical_confirmation.disease == "yes")
|
112
|
-
@customer_data[prod.id] << " We care a lot for you,
|
112
|
+
@customer_data[prod.id] << " We care a lot for you, We have identified that you are infected with disease. Please consult with doctor before having pizza's."
|
113
113
|
else
|
114
|
-
@customer_data[prod.id] << "
|
114
|
+
@customer_data[prod.id] << " How's your health."
|
115
115
|
if (@medical_confirmation.foodHabit == prod.foodType)
|
116
116
|
@customer_data[prod.id] << " This is your favorite food type."
|
117
117
|
if (@medical_confirmation.allergens == prod.allergens) #&& @medical_confirmation.userName == @user_medical_check.firstName)
|
@@ -119,7 +119,7 @@ class MediLow
|
|
119
119
|
else
|
120
120
|
@customer_data[prod.id] << " Good Choice."
|
121
121
|
if(prod.calorie>250)
|
122
|
-
@customer_data[prod.id] << "
|
122
|
+
@customer_data[prod.id] << " Do exercise to burn #{prod.calorie} calories accordingly"
|
123
123
|
else
|
124
124
|
@customer_data[prod.id] << " Have a healthy life."
|
125
125
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: medical_strategy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|