Class: UAParser::Parser
- Inherits:
-
Object
- Object
- UAParser::Parser
- Defined in:
- lib/ua_parser.rb
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse_device(*args) ⇒ Object
- #parse_os(*args) ⇒ Object
- #parse_ua(*args) ⇒ Object
Constructor Details
#initialize ⇒ Parser
Returns a new instance of Parser.
6 7 8 |
# File 'lib/ua_parser.rb', line 6 def initialize @ua_parser = UserAgentParser::Parser.new end |
Instance Method Details
#parse_device(*args) ⇒ Object
18 19 20 |
# File 'lib/ua_parser.rb', line 18 def parse_device(*args) @ua_parser.parse_device(*args) end |
#parse_os(*args) ⇒ Object
10 11 12 |
# File 'lib/ua_parser.rb', line 10 def parse_os(*args) @ua_parser.parse_os(*args) end |
#parse_ua(*args) ⇒ Object
14 15 16 |
# File 'lib/ua_parser.rb', line 14 def parse_ua(*args) @ua_parser.parse_ua(*args) end |