Class: Sqewer::Contrib::AppsignalWrapper::FakeRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/sqewer/extensions/appsignal_wrapper.rb

Overview

Acts as a replacement for Appsignal::GenericRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeRequest

Returns a new instance of FakeRequest.



20
# File 'lib/sqewer/extensions/appsignal_wrapper.rb', line 20

def initialize; super({}); end

Instance Attribute Details

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



19
20
21
# File 'lib/sqewer/extensions/appsignal_wrapper.rb', line 19

def params
  @params
end

Instance Method Details

#envObject



21
# File 'lib/sqewer/extensions/appsignal_wrapper.rb', line 21

def env; {params: self.params}; end