class LicenseStatus::Active
def filter(licenses)
now = DateTime.now
licenses.where('issued_at < ? AND expired_at > ?', now, now)
end
def matches?(name)
to_s == name
end
def best_represents?(license)
now = DateTime.now
license.issued_at < now && license.expired_at > now
end
def to_s
'active'
end
end