Class: PanDomain::Human::BloodClassificationSystem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PanDomain::Human::BloodClassificationSystem
- Defined in:
- app/models/pan_domain/human/blood_classification_system.rb
Overview
Store information about blood clasification systems
Constant Summary collapse
- SYSTEMS =
[ { name: 'ABO', description: 'A system which group human blood with A, B, O, and AB.' }, { name: 'Rhesus', description: 'A system which group human blood with Rh- and Rh+.' } ].freeze
Class Method Summary collapse
Class Method Details
.abo ⇒ Object
25 26 27 |
# File 'app/models/pan_domain/human/blood_classification_system.rb', line 25 def abo @abo ||= find_by(name: 'ABO') end |
.rhesus ⇒ Object
29 30 31 |
# File 'app/models/pan_domain/human/blood_classification_system.rb', line 29 def rhesus @rhesus ||= find_by(name: 'Rhesus') end |