bmi-kameroz 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/bmi-kameroz.rb +17 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd93854a8ccd7591a0f3c94dcf2472bf9d42eea0
|
4
|
+
data.tar.gz: a2a41df0db4561904b636340e856f0a6c527b7ed
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 290ef2649187b8bf149d27332f3c3d0a945ae2bf9ff45bd57f82ac6f9cd84179918e952365a6b4751cc417111f6176c25af2003eb97e8fd536d33325fc6ba102
|
7
|
+
data.tar.gz: 769721c71961045d2aa2207992212a445c6b5ebf2afa585250fdbb623e27ec78152f2c6bcc5e989b23dee63645e255ff66777998b26c5a6c5271a32cb56a0e3f
|
data/lib/bmi-kameroz.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
class BodyMassIndex
|
5
|
+
attr_accessor :weight, :height
|
6
|
+
|
7
|
+
def initialize(weight, height)
|
8
|
+
@weight=weight
|
9
|
+
@height=height
|
10
|
+
end
|
11
|
+
|
12
|
+
def calculate_index
|
13
|
+
@bmi = @weight / (@height * @height)
|
14
|
+
puts 'tu masa corporal es de: '+ @bmi.to_s
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bmi-kameroz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Juan Francisco Cameros
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: corpgem
|
14
|
+
email: cameros_azul@hotmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/bmi-kameroz.rb
|
20
|
+
homepage: https://github.com/kameroz/bmi-kameroz
|
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.8
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Calculadora de peso corporal
|
44
|
+
test_files: []
|