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