lib/meibo/demographic.rb in meibo-0.4.0 vs lib/meibo/demographic.rb in meibo-0.5.0
- old
+ new
@@ -64,7 +64,23 @@
@state_of_birth_abbreviation = state_of_birth_abbreviation
@city_of_birth = city_of_birth
@public_school_residence_status = public_school_residence_status
@extension_fields = extension_fields
end
+
+ def male?
+ sex == SEX[:male]
+ end
+
+ def female?
+ sex == SEX[:female]
+ end
+
+ def unspecified?
+ sex == SEX[:unspecified]
+ end
+
+ def other?
+ sex == SEX[:other]
+ end
end
end