bmi_reyna 1.0.0 → 4.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 +4 -4
 - data/lib/{calcula_imc.rb → body.rb} +3 -3
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: bf1a369611227c0afba3c76a5aea43bf5bf6e802
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 75d033437d15f84c74d4b041d5bba4c1e5712d88
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c8d97ecb33096c0976c65712d3fc2a552de1ef0d1e6b92fe011bf7d090d5dd951a8f9a07e527ea5074f7edc46a0bcd2636286c396d4d224f639edeffe348c16a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ef3470dbaa978a1abea359c756027153c744a582b62e1ed5d8b3e59f6b1f18fb34d00000a9b76ae2fa60f9eee45354d5f4b7c3e27b960d96e0c99037c4c8389f
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class  
     | 
| 
      
 1 
     | 
    
         
            +
            class BmiReyna
         
     | 
| 
       2 
2 
     | 
    
         
             
            	attr_reader :height, :mass
         
     | 
| 
       3 
3 
     | 
    
         
             
            	def initialize (height, mass)
         
     | 
| 
       4 
4 
     | 
    
         
             
            		@height, @mass = height, mass
         
     | 
| 
         @@ -7,5 +7,5 @@ class CalculaImc 
     | 
|
| 
       7 
7 
     | 
    
         
             
            		(@mass/(@height**2)).round(2)
         
     | 
| 
       8 
8 
     | 
    
         
             
            	end
         
     | 
| 
       9 
9 
     | 
    
         
             
            end
         
     | 
| 
       10 
     | 
    
         
            -
            x= 
     | 
| 
       11 
     | 
    
         
            -
            puts (x.calculate).to_s
         
     | 
| 
      
 10 
     | 
    
         
            +
            x=BmiReyna.new(1.8,80)
         
     | 
| 
      
 11 
     | 
    
         
            +
            puts "asd "+(x.calculate).to_s
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: bmi_reyna
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version:  
     | 
| 
      
 4 
     | 
    
         
            +
              version: 4.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Reyna Carrillo
         
     | 
| 
         @@ -16,7 +16,7 @@ executables: [] 
     | 
|
| 
       16 
16 
     | 
    
         
             
            extensions: []
         
     | 
| 
       17 
17 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       18 
18 
     | 
    
         
             
            files:
         
     | 
| 
       19 
     | 
    
         
            -
            - lib/ 
     | 
| 
      
 19 
     | 
    
         
            +
            - lib/body.rb
         
     | 
| 
       20 
20 
     | 
    
         
             
            homepage: https://github.com/ReynaCarrillo
         
     | 
| 
       21 
21 
     | 
    
         
             
            licenses:
         
     | 
| 
       22 
22 
     | 
    
         
             
            - MIT
         
     |