Class: DeviceDetector::ModelExtractor

Inherits:
MetadataExtractor show all
Defined in:
lib/device_detector/model_extractor.rb

Instance Attribute Summary

Attributes inherited from MetadataExtractor

#regex_meta, #user_agent

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
# File 'lib/device_detector/model_extractor.rb', line 5

def call
  s = super.to_s.gsub('_', ' ').strip
  s = s.gsub(/ TD$/i, '')

  return nil if s == 'Build'

  s.empty? ? nil : s
end