lib/meibo/demographic_set.rb in meibo-0.12.0 vs lib/meibo/demographic_set.rb in meibo-0.13.0

- old
+ new

@@ -7,7 +7,23 @@ each do |demographic| roster.users.find(demographic.sourced_id) end end + + def male + @cache[:male] ||= new(select(&:male?)) + end + + def female + @cache[:female] ||= new(select(&:female?)) + end + + def unspecified + @cache[:unspecified] ||= new(select(&:unspecified?)) + end + + def other + @cache[:other] ||= new(select(&:other?)) + end end end