ivCalculator 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.
- checksums.yaml +7 -0
- data/lib/ivCalculator.rb +26 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2ad418ca5c146db29459c7308853e03263d7f5a4
|
4
|
+
data.tar.gz: e751690499d0a3e6a3773b551c805a50cea85027
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6cac34d4c3a6908e15ddb532e7c1b9a3522c27147fed68348a9f1d9c489888477027e3f822970434cba93abc17751e78312ff78ac70c6ab3b589772bf752a467
|
7
|
+
data.tar.gz: fee11004ab3275d1311dfb56daab19ed724ac422f75649640cdfeed853c2779fa435eb0b88ce01e586407ad1a6309eef17852cdfecc451cde9209a4d387f3f05
|
data/lib/ivCalculator.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
class IvCalculator
|
2
|
+
|
3
|
+
|
4
|
+
puts "IvCalculator"
|
5
|
+
puts ""
|
6
|
+
|
7
|
+
puts "Please enter the volume of dose in mL"
|
8
|
+
n1 = gets.to_i()
|
9
|
+
puts ""
|
10
|
+
|
11
|
+
puts "Please enter the time for which dose will be given in minutes"
|
12
|
+
n2 = gets.to_i()
|
13
|
+
puts ""
|
14
|
+
|
15
|
+
puts "Please enter the drop factor"
|
16
|
+
n3 = gets.to_i()
|
17
|
+
puts ""
|
18
|
+
|
19
|
+
calculate = (n1 / n2) * n3
|
20
|
+
|
21
|
+
|
22
|
+
puts "The iv flow rate is = #{calculate}"
|
23
|
+
|
24
|
+
gets()
|
25
|
+
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ivCalculator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sunny Idekar
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: returns the result of the intravenous flow rate.
|
14
|
+
email: sunnyidekar19@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/ivCalculator.rb
|
20
|
+
homepage: http://rubygems.org/gems/ivCalculator
|
21
|
+
licenses: []
|
22
|
+
metadata: {}
|
23
|
+
post_install_message:
|
24
|
+
rdoc_options: []
|
25
|
+
require_paths:
|
26
|
+
- lib
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
requirements: []
|
38
|
+
rubyforge_project:
|
39
|
+
rubygems_version: 2.5.1
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Calculates the IVF rate.
|
43
|
+
test_files: []
|