lib/eid/core.rb in e-id-0.1.0 vs lib/eid/core.rb in e-id-0.2.0

- old
+ new

@@ -5,7 +5,15 @@ attr_accessor :identity def initialize(identity) @identity = identity.to_s end + + def gender + female? ? :female : :male + end + + def age + Date.today.year - birth_date&.year.to_i + end end end