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
- .events ⇒ Object private
Instance Method Summary collapse
- #event(payload) ⇒ Object private
-
#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 |
.events ⇒ 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 |
# File 'lib/honeybadger/cli/test.rb', line 27 def self.events @events ||= [] end |
Instance Method Details
#event(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.
37 38 39 40 41 |
# File 'lib/honeybadger/cli/test.rb', line 37 def event(payload) response = @backend.event(payload) self.class.events << [payload, response] response end |
#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.
31 32 33 34 35 |
# File 'lib/honeybadger/cli/test.rb', line 31 def notify(feature, payload) response = @backend.notify(feature, payload) self.class.callings[feature] << [payload, response] response end |