class FileData::ExifData
Container for Exif
tag values
Constants
- SECTIONS
Public Class Methods
new()
click to toggle source
# File lib/file_data/formats/exif/exif_data.rb, line 7 def initialize @hash = SECTIONS.each_with_object({}) { |pair, hash| hash[pair[0]] = {} } end
Public Instance Methods
add_tag(index, ifd_id, tag_id, tag_value)
click to toggle source
# File lib/file_data/formats/exif/exif_data.rb, line 11 def add_tag(index, ifd_id, tag_id, tag_value) name = ExifTags.get_tag_name(ifd_id, tag_id) @hash[index][name] = tag_value end