Class: Crep::CrashSource

Inherits:
Object
  • Object
show all
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

HockeyAppCrashSource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appObject (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