Class: DeviceDetector::ModelExtractor
- Inherits:
-
MetadataExtractor
- Object
- Struct
- MetadataExtractor
- DeviceDetector::ModelExtractor
- Defined in:
- lib/device_detector/model_extractor.rb
Instance Attribute Summary
Attributes inherited from MetadataExtractor
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |