Class: Aperture::Project

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

Overview

Overview

The Project object matches up with Projects entries from an Aperture Library. Projects cotain Aperture::Photo objects through an Aperture::PhotoSet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Project

Creates a new Project object given a hash of attributes, this should be the hash returned from parsing the .approject/Info.apfolder file by the plist gem.



11
12
13
14
# File 'lib/aperture/project.rb', line 11

def initialize(attributes = {})
  @attributes = attributes
  @photos = PhotoSet.new
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#photosObject

Returns the value of attribute photos.



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

def photos
  @photos
end