Class: ADLicenseLint::Report
- Inherits:
-
Object
- Object
- ADLicenseLint::Report
- Defined in:
- lib/ad_licenselint/report.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(entries) ⇒ Report
constructor
A new instance of Report.
- #to_hash ⇒ Object
Constructor Details
#initialize(entries) ⇒ Report
Returns a new instance of Report.
5 6 7 |
# File 'lib/ad_licenselint/report.rb', line 5 def initialize(entries) @entries = entries end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
3 4 5 |
# File 'lib/ad_licenselint/report.rb', line 3 def entries @entries end |
Instance Method Details
#empty? ⇒ Boolean
13 14 15 |
# File 'lib/ad_licenselint/report.rb', line 13 def empty? @entries.empty? end |
#to_hash ⇒ Object
9 10 11 |
# File 'lib/ad_licenselint/report.rb', line 9 def to_hash { entries: @entries.map(&:to_hash) } end |