rsrresult 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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rsrresult.rb +41 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 191bcdab8d2b1e649a560b5d2fef735dcf865117
4
+ data.tar.gz: 1e3906e140b72858b91e09ec59c51251090d681f
5
+ SHA512:
6
+ metadata.gz: 6845f433cb2456e140913bb555edd26e0eb88771f10550fa12a51176c86ce7661ab4be2d953ab7a64ca14a1f5808631d464f78b653bb4c51e5ac4c4d1fd6263e
7
+ data.tar.gz: 5b56028decd9fedb1a4f7348b002bca5c0a3c6ffc7ba95a69070e611ec07c69aae0fe3d360279d6c324d42e9ad279e3cd9f35b361c8a894630055fbefa134408
data/lib/rsrresult.rb ADDED
@@ -0,0 +1,41 @@
1
+ class Results
2
+
3
+ def self.getresult(answerone, answertwo, answerthree, answerfour, answerfive, answersix, answerseven, answereight, answernine, answerten)
4
+ score = 0
5
+ if answerone == 1
6
+ score = score+10
7
+ end
8
+ if answertwo == 1
9
+ score = score+10
10
+ end
11
+ if answerthree == 1
12
+ score = score+10
13
+ end
14
+ if answerfour == 1
15
+ score = score+10
16
+ end
17
+ if answerfive == 1
18
+ score = score+10
19
+ end
20
+ if answersix == 1
21
+ score = score+10
22
+ end
23
+
24
+ if answerseven == 1
25
+ score = score+10
26
+ end
27
+ if answereight == 1
28
+ score = score+10
29
+ end
30
+ if answernine == 1
31
+ score = score+10
32
+ end
33
+ if answerten == 1
34
+ score = score+10
35
+ end
36
+ return score
37
+ end
38
+ end
39
+
40
+
41
+
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rsrresult
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - RSR
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: calculate
14
+ email: reynaldo.s.reyes@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/rsrresult.rb
20
+ homepage: http://rubygems.org/gems/rsrquestions
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.2.2
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: A Simple Gem
43
+ test_files: []