Sha256: 1af6555b8ceb4c7918e129f5918b926e36c99d53fa57860f1346da316e6457ac
Contents?: true
Size: 532 Bytes
Versions: 19
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module Meibo class DemographicSet < DataSet def check_semantically_consistent super 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
Version data entries
19 entries across 19 versions & 1 rubygems