Class: Crep::CrashSource
- Inherits:
-
Object
- Object
- Crep::CrashSource
- Defined in:
- lib/crep/model/crash_sources/crash_source.rb
Overview
This is an abstract class that defines the methods which subclasses must implement.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
-
#configure(_bundle_identifier) ⇒ Object
Necessary configuration of the subclass can happen here.
- #crash_count(_version, _build) ⇒ Object
- #crashes(_top, _version, _build, _show_only_unresolved) ⇒ Object
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
6 7 8 |
# File 'lib/crep/model/crash_sources/crash_source.rb', line 6 def app @app end |
Instance Method Details
#configure(_bundle_identifier) ⇒ Object
Necessary configuration of the subclass can happen here
9 10 11 |
# File 'lib/crep/model/crash_sources/crash_source.rb', line 9 def configure(_bundle_identifier) CrepLogger.info('Configuration of the CrashSource can happen in the `configure` method') end |
#crash_count(_version, _build) ⇒ Object
13 14 15 |
# File 'lib/crep/model/crash_sources/crash_source.rb', line 13 def crash_count(_version, _build) raise 'CrashSource subclass has to implement the `crash_count` method.' end |
#crashes(_top, _version, _build, _show_only_unresolved) ⇒ Object
17 18 19 |
# File 'lib/crep/model/crash_sources/crash_source.rb', line 17 def crashes(_top, _version, _build, _show_only_unresolved) raise 'CrashSource subclass has to implement the `crashes` method.' end |