Class: Exif::Tag::MakerNote::ProgramShift

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

Overview

0x000d - ProgramShift

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



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/exifparser/makernote/nikon2.rb', line 97

def to_s
  case @formatted
  when [0xfc, 0x01, 0x06, 0x00]
    "-2/3EV"
  when [0xfd, 0x01, 0x06, 0x00]
    "-1/2EV"
  when [0xfe, 0x01, 0x06, 0x00]
    "-1/3EV"
  when [0x00, 0x01, 0x06, 0x00]
    "+0EV"
  when [0x02, 0x01, 0x06, 0x00]
    "+1/3EV"
  when [0x03, 0x01, 0x06, 0x00]
    "+1/2EV"
  when [0x04, 0x01, 0x06, 0x00]
    "+2/3EV"
  else
    ""
  end
end