Class: Exif::Tag::MakerNote::SonyModelID

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

Overview

0xb001 - Sony Mode lD

Constant Summary collapse

ModelID =
{
  2   => "DSC-R1",
  256 => "DSLR-A100",
  257 => "DSLR-A900",
  258 => "DSLR-A700",
  259 => "DSLR-A200",
  260 => "DSLR-A350",
  261 => "DSLR-A300",
  263 => "DSLR-A380",
  264 => "DSLR-A330",
  265 => "DSLR-A230",
  269 => "DSLR-A850",
  273 => "DSLR-A550",
  274 => "DSLR-A500",
  275 => "DSLR-A450",
  278 => "NEX-5",
  279 => "NEX-3",
  288 => "NEX-5N"
}

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



251
252
253
254
255
256
257
# File 'lib/exifparser/makernote/sony.rb', line 251

def to_s
  if ModelID.has_key?(@formatted)
    %Q[#{@formatted} (="#{ModelID[@formatted]}")]
  else
    %Q[#{@formatted} (Unknown ID)]
  end
end