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



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

def _format0(data)
  data
end

#to_sObject



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

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"
  when "0230"
    "Exif Version 2.3"
  else
    "Unknown Exif Version"
  end
end