Sha256: 527a6966a3eed611258a41288a121d5fb1ec278be03e72188f164f3782a2a801

Contents?: true

Size: 568 Bytes

Versions: 9

Compression:

Stored size: 568 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true
# encoding: UTF-8
# (c) ANB Andrew Bizyaev

require_relative '_tag_string'

module ExifTagger
  module Tag
    # MWG:City, String[0,32]
    #   = IPTC:City XMP-photoshop:City XMP-iptcExt:LocationShownCity
    # Read sequence from mini_exiftool hash: City, LocationShownCity

    class City < TagString
      MAX_BYTESIZE = 32
      EXIFTOOL_TAGS = %w(City LocationShownCity).freeze

      private

      def generate_write_script_lines
        @write_script_lines << %(-MWG:City=#{@value})
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
phtools-0.18.0 lib/phtools/exif_tagger/tags/city.rb
phtools-0.17.0 lib/phtools/exif_tagger/tags/city.rb
phtools-0.16.1 lib/phtools/exif_tagger/tags/city.rb
phtools-0.16.0 lib/phtools/exif_tagger/tags/city.rb
phtools-0.15.1 lib/phtools/exif_tagger/tags/city.rb
phtools-0.15.0 lib/phtools/exif_tagger/tags/city.rb
phtools-0.14.0 lib/phtools/exif_tagger/tags/city.rb
phtools-0.11.2 lib/phtools/exif_tagger/tags/city.rb
phtools-0.11.1 lib/phtools/exif_tagger/tags/city.rb