Class: Rubycc::Doctor::VerifiedGems::Record
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::Doctor::VerifiedGems::Record
- Defined in:
- lib/rubycc/doctor/verified_gems.rb
Overview
A verified-gem entry: the gem's name, every verification recorded for it, and the human-owned notes.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#verifications ⇒ Object
Returns the value of attribute verifications.
Instance Method Summary collapse
-
#versions ⇒ Object
Every version any environment verified, de-duplicated and in the order the records list them.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
38 39 40 |
# File 'lib/rubycc/doctor/verified_gems.rb', line 38 def name @name end |
#notes ⇒ Object
Returns the value of attribute notes
38 39 40 |
# File 'lib/rubycc/doctor/verified_gems.rb', line 38 def notes @notes end |
#verifications ⇒ Object
Returns the value of attribute verifications
38 39 40 |
# File 'lib/rubycc/doctor/verified_gems.rb', line 38 def verifications @verifications end |
Instance Method Details
#versions ⇒ Object
Every version any environment verified, de-duplicated and in the order the records list them. Callers that only ask "which versions are known good at all?" (the schema test, listings) want this rather than a per-environment breakdown.
43 44 45 |
# File 'lib/rubycc/doctor/verified_gems.rb', line 43 def versions verifications.flat_map(&:versions).uniq end |