<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>examples/familytree_example.rb</filename>
    </added>
    <added>
      <filename>spec/familytree_v2/familytree_communicator_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -16,6 +16,7 @@ file.
 # Example code will be posted here as soon as it is packaged as a gem.
 
 See examples/login_example.rb[http://github.com/jimmyz/ruby-fs-stack/tree/master/examples/login_example.rb]
+See examples/familytree_example.rb[http://github.com/jimmyz/ruby-fs-stack/tree/master/examples/familytree_example.rb]
 
 == Discussion
 </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,51 @@ with_warnings_suppressed do
   require 'ruby-fs-stack/enunciate/familytree'
 end
 
+
+module FamilytreeV2
+  
+  # This method gets mixed into the FsCommunicator so that
+  # you can make calls on the fs_familytree_v1 module
+  def familytree_v2
+    @familytree_v2_com ||= Communicator.new self # self at this point refers to the FsCommunicator instance
+  end
+  
+  class Communicator
+    Base = '/familytree/v2/'
+    
+    # ==params
+    # fs_communicator: FsCommunicator instance
+    def initialize(fs_communicator)
+      @fs_communicator = fs_communicator
+    end
+    
+    # ===params
+    # &lt;tt&gt;id&lt;/tt&gt; should be a string of the persons identifier. For the 'me' person, use :me or 'me'
+    # &lt;tt&gt;options&lt;/tt&gt; NOT IMPLEMENTED YET
+    def person(id, options = {})
+      id = id.to_s
+      if id == 'me'
+        url = Base + 'person'
+      else
+        url = Base + 'person/' + id
+      end
+      response = @fs_communicator.get(url)
+      familytree = Org::Familysearch::Ws::Familytree::V2::Schema::FamilyTree.from_json JSON.parse(response.body)
+      person = familytree.persons.find{|p| p.requestedId == id }
+      person ||= familytree.persons.first if id == 'me'
+      person
+    end
+  end
+  
+end
+
+# Mix in the module so that the fs_familytree_v1 can be called
+class FsCommunicator
+  include FamilytreeV2
+end
+
+
+
 module Org::Familysearch::Ws::Familytree::V2::Schema
   
   class GenderAssertion</diff>
      <filename>lib/ruby-fs-stack/familytree.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af37c84288fc985c26697df78003cce985e449df</id>
    </parent>
  </parents>
  <author>
    <name>Jimmy Zimmerman</name>
    <email>jimmy.zimmerman@gmail.com</email>
  </author>
  <url>http://github.com/jimmyz/ruby-fs-stack/commit/840959c1dc8a5d9effbeef69b7e9ed0f90818393</url>
  <id>840959c1dc8a5d9effbeef69b7e9ed0f90818393</id>
  <committed-date>2009-10-30T15:48:45-07:00</committed-date>
  <authored-date>2009-10-30T15:48:45-07:00</authored-date>
  <message>Added familytree/v2 communicator functionality to be able to read a person. Also added an example for this.</message>
  <tree>195060d30677f048c5c3c8e45e3435ed1ceaf931</tree>
  <committer>
    <name>Jimmy Zimmerman</name>
    <email>jimmy.zimmerman@gmail.com</email>
  </committer>
</commit>
