Class: Faker::Blood
Constant Summary
Constants inherited from Base
Faker::Base::LLetters, Faker::Base::Letters, Faker::Base::NOT_GIVEN, Faker::Base::Numbers, Faker::Base::ULetters
Class Method Summary collapse
- 
  
    
      .group  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces a random blood group name. 
- 
  
    
      .rh_factor  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces a random blood RH-Factor. 
- 
  
    
      .type  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces a random blood type. 
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.group ⇒ String
Produces a random blood group name.
| 43 44 45 | # File 'lib/faker/default/blood.rb', line 43 def group parse('blood.group') end | 
.rh_factor ⇒ String
Produces a random blood RH-Factor.
| 30 31 32 | # File 'lib/faker/default/blood.rb', line 30 def rh_factor fetch('blood.rh_factor') end | 
.type ⇒ String
Produces a random blood type.
| 17 18 19 | # File 'lib/faker/default/blood.rb', line 17 def type fetch('blood.type') end |