Class: Hashira::CI::Accepted
- Inherits:
-
Object
- Object
- Hashira::CI::Accepted
- Defined in:
- lib/hashira/ci/accepted.rb
Defined Under Namespace
Class Method Summary collapse
Instance Method Summary collapse
- #entries ⇒ Object
-
#initialize(entries) ⇒ Accepted
constructor
A new instance of Accepted.
- #screen(findings) ⇒ Object
Constructor Details
Class Method Details
.load(path) ⇒ Object
20 21 22 23 24 |
# File 'lib/hashira/ci/accepted.rb', line 20 def self.load(path) return new([]) unless path && File.exist?(path) new(JSON.parse(File.read(path)).fetch("accepted", [])) end |
Instance Method Details
#entries ⇒ Object
30 |
# File 'lib/hashira/ci/accepted.rb', line 30 def entries = @entries.map(&:to_h) |