Class: Aperture::Version
- Inherits:
-
Object
- Object
- Aperture::Version
- 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
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#photo ⇒ Object
Returns the value of attribute photo.
Instance Method Summary collapse
-
#initialize(filename, attributes, photo) ⇒ Version
constructor
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.
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
#attributes ⇒ Object
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/aperture/version.rb', line 7 def attributes @attributes end |
#filename ⇒ Object
Returns the value of attribute filename.
7 8 9 |
# File 'lib/aperture/version.rb', line 7 def filename @filename end |
#photo ⇒ Object
Returns the value of attribute photo.
7 8 9 |
# File 'lib/aperture/version.rb', line 7 def photo @photo end |