Class: Exif::Tag::MakerNote::LensSpecification
- Defined in:
- lib/exifparser/makernote/nikon2.rb
Overview
0x0084 - LensSpecification
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, #value
Constructor Details
This class inherits a constructor from Exif::Tag::Base
Instance Method Details
#processData ⇒ Object
271 272 273 274 275 276 |
# File 'lib/exifparser/makernote/nikon2.rb', line 271 def processData @formatted = [] partition_data(@count) do |data| @formatted.push _formatData(data) end end |
#to_s ⇒ Object
278 279 280 281 282 283 284 |
# File 'lib/exifparser/makernote/nikon2.rb', line 278 def to_s if @formatted[0] != @formatted[1] "#{@formatted[0]}-#{@formatted[1]}mm, F#{@formatted[2].to_f}-#{@formatted[3].to_f}" else "#{@formatted[0]}mm, F#{@formatted[2].to_f} (Prime Lens)" end end |