class LicenseStatus::Confidential def filter(licenses) licenses.where(confidential: true) end def matches?(name) to_s == name end def best_represents?(license) license.confidential? end def to_s 'confidential' end end