Class: Exif::Tag::Exif::SceneType

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

Overview

0xa301 - SceneType

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



1432
1433
1434
# File 'lib/exifparser/tag.rb', line 1432

def _format0(data)
  data[0]
end

#to_sObject



1436
1437
1438
1439
1440
1441
1442
1443
# File 'lib/exifparser/tag.rb', line 1436

def to_s
  case @formatted
  when 0x01
    'Directory photographed'
  else
    'Unknown'
  end
end