Class: Exif::Tag::Exif::FocalPlaneResolutionUnit

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

Overview

0xa210 - FocalPlaneResolutionUnit

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

#to_sObject



1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
# File 'lib/exifparser/tag.rb', line 1353

def to_s
  case @formatted
  when 1
    'No unit'
  when 2
    'Inch'
  when 3
    'Centimeter'
  else
    'Unknown'
  end
end