Class: Aireview::ContextBudget::Coverage
- Inherits:
-
Struct
- Object
- Struct
- Aireview::ContextBudget::Coverage
- Defined in:
- lib/aireview/context_budget.rb
Instance Attribute Summary collapse
-
#files_not_shown ⇒ Object
Returns the value of attribute files_not_shown.
-
#files_partial ⇒ Object
Returns the value of attribute files_partial.
-
#files_unavailable ⇒ Object
Returns the value of attribute files_unavailable.
-
#hunks_skipped ⇒ Object
Returns the value of attribute hunks_skipped.
-
#truncated_sections ⇒ Object
Returns the value of attribute truncated_sections.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#files_not_shown ⇒ Object
Returns the value of attribute files_not_shown
15 16 17 |
# File 'lib/aireview/context_budget.rb', line 15 def files_not_shown @files_not_shown end |
#files_partial ⇒ Object
Returns the value of attribute files_partial
15 16 17 |
# File 'lib/aireview/context_budget.rb', line 15 def files_partial @files_partial end |
#files_unavailable ⇒ Object
Returns the value of attribute files_unavailable
15 16 17 |
# File 'lib/aireview/context_budget.rb', line 15 def files_unavailable @files_unavailable end |
#hunks_skipped ⇒ Object
Returns the value of attribute hunks_skipped
15 16 17 |
# File 'lib/aireview/context_budget.rb', line 15 def hunks_skipped @hunks_skipped end |
#truncated_sections ⇒ Object
Returns the value of attribute truncated_sections
15 16 17 |
# File 'lib/aireview/context_budget.rb', line 15 def truncated_sections @truncated_sections end |
Class Method Details
.empty ⇒ Object
19 20 21 |
# File 'lib/aireview/context_budget.rb', line 19 def self.empty new(truncated_sections: [], files_not_shown: [], files_partial: [], files_unavailable: [], hunks_skipped: []) end |
Instance Method Details
#complete? ⇒ Boolean
23 24 25 |
# File 'lib/aireview/context_budget.rb', line 23 def complete? to_h.values.all?(&:empty?) end |