class Halation::Roll::Frame
A frame on the roll of film.
Attributes
aperture[R]
F-number of the aperture setting.
date_captured[R]
Date the frame was captured, in ISO 8601 format.
date_scanned[R]
Date the frame was scanned (digitized), in ISO 8601 format.
flash[R]
True if flash was fired.
focal_length[R]
Focal length of the lens, if not specified by the lens profile (a zoom lens).
lens[R]
Tag of the lens used.
number[R]
Frame
number.
orientation[R]
1 = Horizontal (normal) 2 = Mirror horizontal 3 = Rotate 180 4 = Mirror vertical 5 = Mirror horizontal and rotate 270 CW 6 = Rotate 90 CW 7 = Mirror horizontal and rotate 90 CW 8 = Rotate 270 CW
shutter[R]
@todo spec Shutter speed. @example “1/125”, “0.5” (half second), “15” (seconds), “120” (2 minutes)
Public Class Methods
new(yaml)
click to toggle source
# File lib/halation/roll/frame.rb, line 36 def initialize(yaml) @number = Coerce.integer(yaml["number"]) @date_captured = Coerce.date(yaml["date_captured"]) @date_scanned = Coerce.date(yaml["date_scanned"]) @lens = Coerce.string(yaml["lens"]) @focal_length = Coerce.integer(yaml["focal_length"]) @shutter = Coerce.string(yaml["shutter"]) @aperture = Coerce.string(yaml["aperture"]) @flash = Coerce.boolean(yaml["flash"]) @orientation = Coerce.integer(yaml["orientation"]) end