Class: MockRequest
- Defined in:
- lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
- #env ⇒ Object
-
#initialize(message, options = {}) ⇒ MockRequest
constructor
A new instance of MockRequest.
- #parameters ⇒ Object
- #protocol ⇒ Object
- #request_uri ⇒ Object
- #session ⇒ Object
Constructor Details
#initialize(message, options = {}) ⇒ MockRequest
Returns a new instance of MockRequest.
13 14 15 16 17 18 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 13 def initialize(, = {}) = .each do |k, v| self.instance_variable_set(:"@#{k}", v) end end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
11 12 13 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 11 def format @format end |
Instance Method Details
#env ⇒ Object
20 21 22 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 20 def env {} end |
#parameters ⇒ Object
29 30 31 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 29 def parameters || "nil message. this does not happen (TM)." end |
#protocol ⇒ Object
23 24 25 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 23 def protocol "none" end |
#request_uri ⇒ Object
26 27 28 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 26 def request_uri "none" end |
#session ⇒ Object
32 33 34 |
# File 'lib/background_lite/core_ext/error_reporters/exception_notification_error_reporter.rb', line 32 def session "none" end |