Class: Exif::Tag::Exif::MeteringMode

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

Overview

0x9207 - MeteringMode

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



1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
# File 'lib/exifparser/tag.rb', line 1012

def to_s
  case @formatted
  when 1
    'Average'
  when 2
    'CenterWeightedAverage'
  when 3
    'Spot'
  when 4
    'MultiSpot'
  when 5
    'Pattern'
  when 6
    'Partial'
  when 255
    'other'
  else
    'Unknown'
  end
end