Class: Exif::Tag::MakerNote::SonyFlashLevel

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

Overview

0xb048 - Flash Level

Constant Summary collapse

FlashLevel =
{
  -32768 => "Low",
  -1     => "n/a",
  0      => "Normal",
  32768  => "High"
}

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



564
565
566
# File 'lib/exifparser/makernote/sony.rb', line 564

def to_s
  FlashLevel.has_key?(@formatted) ? FlashLevel[@formatted] : @formatted.to_s + " (Unknown)"
end