Class: UAParser::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/ua_parser.rb

Instance Method Summary collapse

Constructor Details

#initializeParser

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