Class: RailsErrorDashboard::ManualErrorReporter::SyntheticException::MockClass Private

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_error_dashboard/manual_error_reporter.rb

Overview

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.

MockClass: A simple class-like object for error typing

Instance Method Summary collapse

Constructor Details

#initialize(error_type) ⇒ MockClass

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 MockClass.



150
151
152
# File 'lib/rails_error_dashboard/manual_error_reporter.rb', line 150

def initialize(error_type)
  @error_type = error_type
end

Instance Method Details

#nameObject

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.



154
155
156
# File 'lib/rails_error_dashboard/manual_error_reporter.rb', line 154

def name
  @error_type
end

#to_sObject

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.



158
159
160
# File 'lib/rails_error_dashboard/manual_error_reporter.rb', line 158

def to_s
  @error_type
end