Class: Honeybadger::CLI::Test::TestBackend Private
- Inherits:
-
Object
- Object
- Honeybadger::CLI::Test::TestBackend
- Defined in:
- lib/honeybadger/cli/test.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .callings ⇒ Object private
Instance Method Summary collapse
-
#initialize(backend) ⇒ TestBackend
constructor
private
A new instance of TestBackend.
- #notify(feature, payload) ⇒ Object private
Constructor Details
#initialize(backend) ⇒ TestBackend
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TestBackend.
19 20 21 |
# File 'lib/honeybadger/cli/test.rb', line 19 def initialize(backend) @backend = backend end |
Class Method Details
.callings ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/honeybadger/cli/test.rb', line 23 def self.callings @callings ||= Hash.new {|h,k| h[k] = [] } end |
Instance Method Details
#notify(feature, payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 |
# File 'lib/honeybadger/cli/test.rb', line 27 def notify(feature, payload) response = @backend.notify(feature, payload) self.class.callings[feature] << [payload, response] response end |