class UserAgent::Browsers::PlayStation

def platform

Returns:
  • (nil, "PlayStation 3", "PlayStation 4", "PlayStation Vita") - the platform in use
def platform
  if os.include?('PLAYSTATION 3')
    'PlayStation 3'
  elsif os.include?('PlayStation 4')
    'PlayStation 4'
  elsif os.include?('PlayStation Vita')
    'PlayStation Vita'
  else
    nil
  end
end