Class: Exif::Tag::Exif::Contrast

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

Overview

0xa408 - Contrast

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



1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
# File 'lib/exifparser/tag.rb', line 1569

def to_s
  case @formatted
  when 0
    'Normal'
  when 1
    'Soft'
  when 2
    'Hard'
  else
    'reserved'
  end
end