bmi-marcoochoa28 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/bmi-marcoochoa28.rb +14 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c728696727460782957150868030011808afc0d9
4
+ data.tar.gz: 98659833847336e1d4d77ad0998ed2f7463f9396
5
+ SHA512:
6
+ metadata.gz: c0af7f5167a663af1e871c7200466c7ef8da6b28c3fe892adec8d55085044ab188eadfd8b960082813e003e5130183757902d206bd0ccdeaa04320877ef8e5bf
7
+ data.tar.gz: eabc0e33b45290fcb5be6152644fd88afb9fb5a9ceb31aa5dce22bd4e321ef6bbb6595cb71dfbf48b9369cf0b0e34bf0c233aa708ec02a5e6008451266cbaebe
@@ -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
+ @bmi = @weight / (@height * @height)
11
+ puts 'El BMI es: '+ @bmi.to_s
12
+ end
13
+
14
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bmi-marcoochoa28
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Marco Ochoa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Gema BMI
14
+ email: marcooochoa28@hotmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/bmi-marcoochoa28.rb
20
+ homepage: https://github.com/marcoochoa28/bmi-marcoochoa28
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: Calcula BMI
44
+ test_files: []