Class: DeviceDetector::MetadataExtractor

Inherits:
Struct
  • Object
show all
Defined in:
lib/device_detector/metadata_extractor.rb

Direct Known Subclasses

ModelExtractor, NameExtractor, VersionExtractor

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#regex_metaObject

Returns the value of attribute regex_meta

Returns:

  • (Object)

    the current value of regex_meta



4
5
6
# File 'lib/device_detector/metadata_extractor.rb', line 4

def regex_meta
  @regex_meta
end

#user_agentObject

Returns the value of attribute user_agent

Returns:

  • (Object)

    the current value of user_agent



4
5
6
# File 'lib/device_detector/metadata_extractor.rb', line 4

def user_agent
  @user_agent
end

Instance Method Details

#callObject



5
6
7
# File 'lib/device_detector/metadata_extractor.rb', line 5

def call
  regex_meta.any? ?  : nil
end