module Rack::UserAgent::Checker

Public Instance Methods

from_appliance?() click to toggle source
# File lib/rack/user_agent/checker.rb, line 20
def from_appliance?
  device_type == :appliance
end
from_crawler?() click to toggle source
# File lib/rack/user_agent/checker.rb, line 24
def from_crawler?
  device_type == :crawler
end
from_mobilephone?() click to toggle source
# File lib/rack/user_agent/checker.rb, line 16
def from_mobilephone?
  device_type == :mobilephone
end
from_pc?() click to toggle source
# File lib/rack/user_agent/checker.rb, line 8
def from_pc?
  device_type == :pc
end
from_smartphone?() click to toggle source
# File lib/rack/user_agent/checker.rb, line 12
def from_smartphone?
  device_type == :smartphone
end