1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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