Class: Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- Request
- Defined in:
- lib/eukaliptus/request.rb
Overview
Extend Rack::Request to add some helpers for FB
Constant Summary collapse
- URL_ENCODED =
%r{^application/x-www-form-urlencoded}
- JSON_ENCODED =
%r{^application/json}
Instance Method Summary collapse
Instance Method Details
#facebook? ⇒ Boolean
12 13 14 |
# File 'lib/eukaliptus/request.rb', line 12 def facebook? params['signed_request'].present? end |
#params ⇒ Object
8 9 10 |
# File 'lib/eukaliptus/request.rb', line 8 def params @params ||= retrieve_params(env) end |