require 'tty-prompt' module Analytics module Interactor class UserProperty # Returns all user properties which uses an enum as the value. def self.all_enum_user_properties(user_properties) user_properties .map { |up| up.dup } .reject { |up| up['values'].nil? } end end end end