Class: Exif::Tag::Exif::ExifVersion

Inherits:
Base
  • Object
show all
Defined in:
lib/exifparser/tag.rb

Overview

0x9000 - ExifVersion

Instance Attribute Summary

Attributes inherited from Base

#IFD, #count, #data, #dataPos, #pos, #tagID

Instance Method Summary collapse

Methods inherited from Base

#formatExposureTime, #formatFNumber, #formatFocalLength, #formatLatLon, #initialize, #inspect, #name, #processData, #value

Constructor Details

This class inherits a constructor from Exif::Tag::Base

Instance Method Details

#_format0(data) ⇒ Object



879
880
881
# File 'lib/exifparser/tag.rb', line 879

def _format0(data)
  data
end

#to_sObject



883
884
885
886
887
888
889
890
891
892
893
894
895
896
# File 'lib/exifparser/tag.rb', line 883

def to_s
  case @formatted
  when "0200"
    "Exif Version 2.0"
  when "0210"
    "Exif Version 2.1"
  when "0220"
    "Exif Version 2.2"
  when "0221"
    "Exif Version 2.21"
  else
    "Unknown Exif Version"
  end
end