summaryrefslogtreecommitdiff
path: root/app/models/license_status/confidential.rb
blob: b2354cd40ec7bc67cb1eebbaf914020d6b9b1aa9 (plain)
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