Sha256: cd1d1b728994fc50a6dfc83259566f7e43f5feffdc9e70ebd7d4e5cb4e0a28a6

Contents?: true

Size: 546 Bytes

Versions: 9

Compression:

Stored size: 546 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:State, String[0,32]
    #   IPTC:Province-State, XMP-photoshop:State, XMP-iptcExt:LocationShownProvinceState
    class State < TagString
      MAX_BYTESIZE = 32
      EXIFTOOL_TAGS = %w(Province-State State LocationShownProvinceState).freeze

      private

      def generate_write_script_lines
        @write_script_lines << %(-MWG:State=#{@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/state.rb
phtools-0.17.0 lib/phtools/exif_tagger/tags/state.rb
phtools-0.16.1 lib/phtools/exif_tagger/tags/state.rb
phtools-0.16.0 lib/phtools/exif_tagger/tags/state.rb
phtools-0.15.1 lib/phtools/exif_tagger/tags/state.rb
phtools-0.15.0 lib/phtools/exif_tagger/tags/state.rb
phtools-0.14.0 lib/phtools/exif_tagger/tags/state.rb
phtools-0.11.2 lib/phtools/exif_tagger/tags/state.rb
phtools-0.11.1 lib/phtools/exif_tagger/tags/state.rb