Class: Aperture::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/aperture/version.rb

Overview

Overview

The Version object matches up with Version entries from an Aperture Library. Version objects are linked an Aperture::Photo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, attributes, photo) ⇒ Version

Creates a new Version object given the following required arugments:

  • the filename for the .apversion file as found on the disk

  • a hash of attributes, this should be the hash returned from parsing the .apversion file by the plist gem.

  • the Photo object that the version is associated with



14
15
16
17
18
# File 'lib/aperture/version.rb', line 14

def initialize(filename, attributes, photo)
  @attributes = attributes
  @filename   = filename
  @photo      = photo
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



7
8
9
# File 'lib/aperture/version.rb', line 7

def attributes
  @attributes
end

#filenameObject

Returns the value of attribute filename.



7
8
9
# File 'lib/aperture/version.rb', line 7

def filename
  @filename
end

#photoObject

Returns the value of attribute photo.



7
8
9
# File 'lib/aperture/version.rb', line 7

def photo
  @photo
end