<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -51,13 +51,23 @@ module Fleakr
         sprintf(&quot;%0#{self.count.length}d_&quot;, (index + 1))
       end
 
+      # Primary photo for this set. See Fleakr::Objects::Photo for more details.
+      #
       def primary_photo
         @primary_photo ||= Photo.find_by_id(primary_photo_id)
       end
       
+      # The URL for this set.
+      #
       def url
         &quot;http://www.flickr.com/photos/#{user_id}/sets/#{id}/&quot;
       end
+      
+      # The user who created this set.
+      #
+      def user
+        User.find_by_id(user_id)
+      end
    
       def load_info # :nodoc:
         response = Fleakr::Api::MethodRequest.with_response!('photosets.getInfo', :photoset_id =&gt; self.id)</diff>
      <filename>lib/fleakr/objects/set.rb</filename>
    </modified>
    <modified>
      <diff>@@ -46,6 +46,15 @@ module Fleakr::Objects
         s.url.should == &quot;http://www.flickr.com/photos/123/sets/456/&quot;
       end
       
+      should &quot;be able to retrieve the user for the set&quot; do
+        s = Set.new
+        s.stubs(:user_id).with().returns('1')
+        
+        User.expects(:find_by_id).with('1').returns('user')
+        
+        s.user.should == 'user'
+      end
+      
       should &quot;know the primary photo in the set&quot; do
         id    = '1'
         photo = stub()</diff>
      <filename>test/unit/fleakr/objects/set_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9bda7565d920978c2515d51c19e24834d67b77aa</id>
    </parent>
  </parents>
  <author>
    <name>Patrick Reagan</name>
    <email>patrick.reagan@viget.com</email>
  </author>
  <url>http://github.com/reagent/fleakr/commit/046a0d2951cda044ab2c57aa20d59dd3d8d2708b</url>
  <id>046a0d2951cda044ab2c57aa20d59dd3d8d2708b</id>
  <committed-date>2009-10-25T18:18:50-07:00</committed-date>
  <authored-date>2009-10-25T18:18:50-07:00</authored-date>
  <message>Allow access to user from an individual set</message>
  <tree>920c8e7e25cdf3e55a25280c3d2e0a3374ad8915</tree>
  <committer>
    <name>Patrick Reagan</name>
    <email>patrick.reagan@viget.com</email>
  </committer>
</commit>
