Class: FakeSQS::ShowOutput
- Inherits:
-
Object
- Object
- FakeSQS::ShowOutput
- Defined in:
- lib/fake_sqs/show_output.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ShowOutput
constructor
A new instance of ShowOutput.
Constructor Details
#initialize(app) ⇒ ShowOutput
Returns a new instance of ShowOutput.
6 7 8 |
# File 'lib/fake_sqs/show_output.rb', line 6 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/fake_sqs/show_output.rb', line 10 def call(env) request = Rack::Request.new(env) result = @app.call(env) puts request.params.to_yaml puts puts *result.last result end |