bmi_reyna2 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/bmi-gaboisc.rb +14 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 472e44c50ddcab7b73adb79323a3566b497a348a
|
4
|
+
data.tar.gz: 7adee2480486a3853ca37820263a6d5390fe1e0f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7f085e9faf0848bdf047b7b2e2ab16be41ff2822b1ffa430960fc131ca4786fde4d3cfb2ede2fa06a0b1ab2490c84e10752b2ff705c66e82f60971cf0df5f789
|
7
|
+
data.tar.gz: a00ae20f438d8da0c4759e5b8f9d56119f679b4982a39bde3510b7f29a9692b8e7e8aa56158c80c5971f30e39df8fb5e1176f349b057673ffaa3c7620046b1be
|
data/lib/bmi-gaboisc.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
class BodyMassIndex
|
2
|
+
attr_accessor :weight, :height
|
3
|
+
|
4
|
+
def initialize(weight, height)
|
5
|
+
@weight=weight
|
6
|
+
@height=height
|
7
|
+
end
|
8
|
+
|
9
|
+
def calculate_index
|
10
|
+
@wh = @weight / (@height * @height)
|
11
|
+
puts 'El indice de masa corporal es: '+ @wh.to_s
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bmi_reyna2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 11.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gabriel Diaz Mejia
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple BMI gem
|
14
|
+
email: gabriel.-11@hotmail
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/bmi-gaboisc.rb
|
20
|
+
homepage: https://github.com/GaboISC/bmi-gaboisc
|
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.4.5.1
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Calculate Body Mass Index
|
44
|
+
test_files: []
|