medichecker 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/medichecker.rb +13 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 75af8990d36f2e335a60e3ea820b6fa9ba5789ce
|
|
4
|
+
data.tar.gz: 437843941ae008d6755e7c7abb6acd9f9225e816
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 37f668e898543d0234ec6dc86f0520f7eae3d20c5aed5dbf0ddee568fdca7683063213adcd76b4101f8089c185340e6e44c4744fe75ac380bab82cb3d6090024
|
|
7
|
+
data.tar.gz: 878f75fb671e0a1039e9c1c48a575044e28c459426ecc0e7b9f5429dbb785a8228556896b18a16ae8a27bfb6cbb8107212f407370976f3385c67555460a84575
|
data/lib/medichecker.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class MediCheck
|
|
2
|
+
def self.runcheck(inury)
|
|
3
|
+
if [ 'Head', 'Neck', 'Spine', 'Heart', 'Cancer', 'AIDS', 'Baby'].any? {|array| array.include? injury }
|
|
4
|
+
return 'Serious, High Severity'
|
|
5
|
+
elsif [ 'Chest', 'Fracture', 'Broken', 'Hip', 'Asthma', 'Eye'].any? {|array| array.include? injury }
|
|
6
|
+
return 'Medium Serverity'
|
|
7
|
+
elsif [ 'Cold', 'Wrist', 'Ankle', 'Cough', 'Shivers', 'Sneezing', 'Sneeze', 'Scratch'].any? {|array| array.include? injury }
|
|
8
|
+
return [ 'Not Serious, Low Serverity']
|
|
9
|
+
else
|
|
10
|
+
return 'Invalid Statment'
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: medichecker
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Sam Conneely
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-08-15 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Medical Gem For Checking The Severity Of An Injury Or Illness
|
|
14
|
+
email: frapcake@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/medichecker.rb
|
|
20
|
+
homepage: http://rubygems.org/gems/medichecker
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
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: Medical Gem For Checking The Severites
|
|
44
|
+
test_files: []
|