Class: Exif::Tag::Exif::GainControl

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

Overview

0xa407 - GaincControl

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



1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
# File 'lib/exifparser/tag.rb', line 1547

def to_s
  case @formatted
  when 0
    'None'
  when 1
    'Low gain up'
  when 2
    'High gain up'
  when 3
    'Low gain down'
  when 4
    'High gain down'
  else
    'reserved'
  end
end