Class: Browser::Device::Ipad

Inherits:
Base
  • Object
show all
Defined in:
lib/browser/device/ipad.rb

Instance Attribute Summary

Attributes inherited from Base

#ua

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Browser::Device::Base

Instance Method Details

#idObject



5
6
7
# File 'lib/browser/device/ipad.rb', line 5

def id
  :ipad
end

#match?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/browser/device/ipad.rb', line 13

def match?
  ua =~ /iPad/
end

#nameObject



9
10
11
# File 'lib/browser/device/ipad.rb', line 9

def name
  "iPad"
end