Class: Aperture::Album
- Inherits:
-
Object
- Object
- Aperture::Album
- Defined in:
- lib/aperture/album.rb
Overview
Overview
The Album object matches up with Album entries from an Aperture Library. Albums cotain Aperture::Photo objects through an Aperture::PhotoSet.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#photos ⇒ Object
Returns the value of attribute photos.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Album
constructor
Creates a new Album object given a hash of attributes, this should be the hash returned from parsing the .apablum file by the plist gem.
Constructor Details
#initialize(attributes) ⇒ Album
Creates a new Album object given a hash of attributes, this should be the hash returned from parsing the .apablum file by the plist gem.
12 13 14 15 |
# File 'lib/aperture/album.rb', line 12 def initialize(attributes) @attributes = attributes @photos = PhotoSet.new end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/aperture/album.rb', line 8 def attributes @attributes end |
#photos ⇒ Object
Returns the value of attribute photos.
8 9 10 |
# File 'lib/aperture/album.rb', line 8 def photos @photos end |