Class: Browser::Device::PSVita

Inherits:
Base
  • Object
show all
Defined in:
lib/browser/device/psvita.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



6
7
8
# File 'lib/browser/device/psvita.rb', line 6

def id
  :psvita
end

#match?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/browser/device/psvita.rb', line 14

def match?
  ua.match?("Playstation Vita")
end

#nameObject



10
11
12
# File 'lib/browser/device/psvita.rb', line 10

def name
  "PlayStation Vita"
end