Class: Aperture::Album

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



8
9
10
# File 'lib/aperture/album.rb', line 8

def attributes
  @attributes
end

#photosObject

Returns the value of attribute photos.



8
9
10
# File 'lib/aperture/album.rb', line 8

def photos
  @photos
end