Sha256: 360461acb8b8028aec1e4ae5adbe3bd59ac1ae337f4040e6fb25a426c44e7cb0
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 Bytes
Contents
module Ahoy module Deckhands class RequestDeckhand attr_reader :request def initialize(request, options = {}) @request = request @options = options end def ip request.remote_ip end def user_agent request.user_agent end def referrer @options[:api] ? request.params["referrer"] : request.referer end def landing_page @options[:api] ? request.params["landing_page"] : request.original_url end def platform request.params["platform"] end def app_version request.params["app_version"] end def os_version request.params["os_version"] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems