Sha256: 74783e67d51150b170b22fc381fd8ea4223029a1c5304d71e83b7676f7fd6a5f
Contents?: true
Size: 481 Bytes
Versions: 8
Compression:
Stored size: 481 Bytes
Contents
require 'user_agent_parser/parser' require 'user_agent_parser/user_agent' require 'user_agent_parser/version' require 'user_agent_parser/operating_system' require 'user_agent_parser/device' module UserAgentParser DefaultPatternsPath = File.join(File.dirname(__FILE__), "../vendor/ua-parser/regexes.yaml") # Parse the given +user_agent_string+, returning a +UserAgent+ def self.parse(user_agent_string, options={}) Parser.new(options).parse(user_agent_string) end end
Version data entries
8 entries across 8 versions & 1 rubygems