Class: Exif::Tag::Exif::FileSource

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

Overview

0xa300 - FileSource

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

#_format0(data) ⇒ Object



1412
1413
1414
# File 'lib/exifparser/tag.rb', line 1412

def _format0(data)
  data[0]
end

#to_sObject



1416
1417
1418
1419
1420
1421
1422
1423
# File 'lib/exifparser/tag.rb', line 1416

def to_s
  case @formatted
  when 0x03
    'Digital still camera'
  else
    'Unknown'
  end
end