class Browser::BlackBerry

Public Instance Methods

full_version() click to toggle source
# File lib/browser/blackberry.rb, line 13
def full_version
  ua[%r{BlackBerry[\da-z]+/([\d.]+)}, 1] ||
    ua[%r{Version/([\d.]+)}, 1] ||
    "0.0"
end
id() click to toggle source
# File lib/browser/blackberry.rb, line 5
def id
  :blackberry
end
match?() click to toggle source
# File lib/browser/blackberry.rb, line 19
def match?
  ua.match?(/BlackBerry|BB10/)
end
name() click to toggle source
# File lib/browser/blackberry.rb, line 9
def name
  "BlackBerry"
end