Class: Jets::Shim::Response::Alb

Inherits:
Apigw
  • Object
show all
Defined in:
lib/jets/shim/response/alb.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Util::Truthy

#truthy?

Methods included from Util::Logging

#log

Constructor Details

This class inherits a constructor from Jets::Shim::Response::Base

Instance Method Details

#translateObject



3
4
5
6
7
8
# File 'lib/jets/shim/response/alb.rb', line 3

def translate
  hash = super
  desc = Rack::Utils::HTTP_STATUS_CODES[hash[:statusCode]]
  hash[:statusDescription] = "#{hash[:statusCode]} #{desc}"
  hash
end