Sha256: 45ff511cdb31317d139265943a8119bd1222df53b112a1e5b912fa709078f36d
Contents?: true
Size: 710 Bytes
Versions: 9
Compression:
Stored size: 710 Bytes
Contents
module Rack class UserAgent module Result UNKNOWN_VARIANT = :unknown def device_type woothee_result[:category] end def device_variant return UNKNOWN_VARIANT if woothee_result[:category] == Woothee::VALUE_UNKNOWN device_type end def os woothee_result[:os] end def os_version woothee_result[:os_version] end def browser woothee_result[:name] end def browser_version woothee_result[:version] end def browser_vendor woothee_result[:vendor] end private def woothee_result env["rack.woothee"] || {} end end end end
Version data entries
9 entries across 9 versions & 1 rubygems