Class: ExifTagger::Tag::ImageUniqueId
- Defined in:
- lib/phtools/exif_tagger/tags/image_unique_id.rb
Overview
ImageUniqueID, String
Constant Summary collapse
- MAX_BYTESIZE =
no limit in EXIF spec
32- EXIFTOOL_TAGS =
%w(ImageUniqueID)
Instance Attribute Summary
Attributes inherited from Tag
#errors, #force_write, #info, #value, #value_invalid, #warnings, #write_script_lines
Instance Method Summary collapse
- #check_for_warnings(original_values: {}) ⇒ Object
-
#initialize(value_raw = []) ⇒ ImageUniqueId
constructor
A new instance of ImageUniqueId.
Methods inherited from Tag
#<=>, #tag_id, #tag_name, #to_s, #to_write_script, #valid?
Constructor Details
#initialize(value_raw = []) ⇒ ImageUniqueId
Returns a new instance of ImageUniqueId.
14 15 16 |
# File 'lib/phtools/exif_tagger/tags/image_unique_id.rb', line 14 def initialize(value_raw = []) super(value_raw.to_s) end |
Instance Method Details
#check_for_warnings(original_values: {}) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/phtools/exif_tagger/tags/image_unique_id.rb', line 18 def check_for_warnings(original_values: {}) @warnings = [] v = original_values[EXIFTOOL_TAGS[0]] if v =~ /(\d{8}-\S+)/ @warnings << "#{tag_name} has original correct value: '#{v}'" end @warnings.freeze end |