Class: Exif::Tag::GPS::GPSSpeedRef

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

Overview

0x000C - GPSSpeedRef

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



1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
# File 'lib/exifparser/tag.rb', line 1858

def to_s
  case @formatted
  when 'K'
    'Kilometers per hour'
  when 'M'
    'Miles per hour'
  when 'N'
    'Knots'
  else
    'Unknown'
  end
end