Class: Exif::Tag::TIFF::ResolutionUnit

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

Overview

0x0128 - ResolutionUnit

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



506
507
508
509
510
511
512
513
514
515
# File 'lib/exifparser/tag.rb', line 506

def to_s
  case @formatted
  when 2
    'inch'
  when 3
    'centimeter'
  else
    'unknown'
  end
end