Class: Request

Inherits:
Rack::Request
  • Object
show all
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

Returns:

  • (Boolean)


12
13
14
# File 'lib/eukaliptus/request.rb', line 12

def facebook?
  params['signed_request'].present?
end

#paramsObject



8
9
10
# File 'lib/eukaliptus/request.rb', line 8

def params
  @params ||= retrieve_params(env)
end