Class: BlobViewer::MetricsDashboardYml
- Includes:
- Auxiliary, ServerSide, Gitlab::Utils::StrongMemoize
- Defined in:
- app/models/blob_viewer/metrics_dashboard_yml.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Auxiliary
Methods included from Gitlab::Allowable
Methods included from Gitlab::Utils::StrongMemoize
#clear_memoization, #strong_memoize, #strong_memoized?
Methods included from ServerSide
Methods inherited from Base
auxiliary?, binary?, #binary_detected_after_load?, can_render?, #collapsed?, #initialize, load_async?, loading_partial_path, partial_path, #prepare!, #render_error, rich?, simple?, text?, #too_large?
Constructor Details
This class inherits a constructor from BlobViewer::Base
Instance Method Details
#errors ⇒ Object
18 19 20 21 22 23 |
# File 'app/models/blob_viewer/metrics_dashboard_yml.rb', line 18 def errors strong_memoize(:errors) do prepare! parse_blob_data end end |
#valid? ⇒ Boolean
14 15 16 |
# File 'app/models/blob_viewer/metrics_dashboard_yml.rb', line 14 def valid? errors.blank? end |