Class: Exif::Tag::MakerNote::LensType

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

Overview

0x0083 - LensType

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



257
258
259
260
261
262
263
264
# File 'lib/exifparser/makernote/nikon2.rb', line 257

def to_s
  data = @formatted[0]
  isVR = (data[3] == 1 ? "Yes":"No")
  isG  = (data[2] == 1 ? "Yes":"No")
  isD  = (data[1] == 1 ? "Yes":"No")
  isMF = (data[0] == 1 ? "Yes":"No")
  "VR:#{isVR}, G:#{isG}, D:#{isD}, MF:#{isMF}"
end