Top Level Namespace
Defined Under Namespace
Modules: MashapeAnalytics
Instance Method Summary collapse
Instance Method Details
#header_hash(headers) ⇒ Object
10 11 12 |
# File 'lib/mashape-analytics/frameworks/rack.rb', line 10 def header_hash(headers) Rack::Utils::HeaderHash.new.merge(headers) end |
#status_code(status) ⇒ Object
6 7 8 |
# File 'lib/mashape-analytics/frameworks/rack.rb', line 6 def status_code(status) Rack::Utils::HTTP_STATUS_CODES[status] || '' end |