priority_indicator 0.0.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/priority_indicator.rb +13 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b602193ece6bde2aa7191f00dab24307b639e6f6
4
+ data.tar.gz: cc0016450cf05ac149d8b1cc6fa3fad5a169fba8
5
+ SHA512:
6
+ metadata.gz: 20c2e953c08fd111c01d0bbacc996ed5edb90efebfe0fd8b3db298a7d3ede2743973d853bfaf9857a0a3db594620e57965a1c36e792028b84f5bb6fd8fe3f77f
7
+ data.tar.gz: '0578e4312e9b40a18ee10be539bac9bdd5cea206d99c811ab098a16295060b0cf1b96a25ba1a5fcdde39fe428ca59355c2f1388474438c949855bbbc8820e363'
@@ -0,0 +1,13 @@
1
+ class Checker
2
+ def self.runcheck(word)
3
+ if [ 'Head', 'Spine', 'Brain', 'Heart','Cancerous', 'Crohn' ].any? {|array| array.include? word }
4
+ return 'High priority'
5
+ elsif [ 'Flu', 'Dehydration', 'Broken', 'Fracture','STI', 'STD' ].any? {|array| array.include? word }
6
+ return 'Medium priority'
7
+ elsif [ 'Cold', 'Itch', 'Nausea', 'Pains','Cough', 'Sneezing' ].any? {|array| array.include? word }
8
+ return 'Low priority'
9
+ else
10
+ return 'Invalid Input'
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: priority_indicator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Darren Quinn
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Priority indication
14
+ email: darrenquinn6@hotmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/priority_indicator.rb
20
+ homepage: http://rubygems.org/gems/priority_indicator
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: Patient priority level indicator
44
+ test_files: []