isallergic 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/isallergic.rb +14 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3fccb537764600bb15cbcb514c2378615ced730d
4
+ data.tar.gz: 0a686bfa868e17b7b21afd070ab71a4c7c540c66
5
+ SHA512:
6
+ metadata.gz: 041b080ac36f970091bdc8248679bf67dce43e3f7977713779393b98b12b32793a50076b8b20a8016519e1a1718437a2aad970f77ac52dc4e322b12573c845b4
7
+ data.tar.gz: c66345850f6ab613122e2e95295841272a45e16fbc8309eed80bd423bdbea6fe4facbcc28e92e317e87a7a0f3032884d3dd5fb6d8e8ed67328c2071e28940db3
data/lib/isallergic.rb ADDED
@@ -0,0 +1,14 @@
1
+ class Check
2
+ def self.runcheck(allergy)
3
+ if allergy =="Penicillin"
4
+ return "antibiotic A"
5
+
6
+ elsif allergy == "ibuprofen"
7
+ return " Another pain relief"
8
+
9
+ elsif allergy == "sinus"
10
+ return " Nasal decongestant sprays"
11
+
12
+ end
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: isallergic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Karolina Laptas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Gem that provide information about alternative medication for patient
14
+ with allergies
15
+ email: karrz95@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/isallergic.rb
21
+ homepage: http://rubygems.org/gems/isallergic
22
+ licenses: []
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.6.8
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Test to see if the patient is allergic what is the alternative!
44
+ test_files: []