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.
7 8 9 |
# File 'lib/fake_sqs/show_output.rb', line 7 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/fake_sqs/show_output.rb', line 11 def call(env) request = Rack::Request.new(env) result = @app.call(env) puts request.params.to_yaml puts puts(*result.last) result end |