<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,8 +16,16 @@ module Yahoo
         end
         
         def api_path(resource, id, collection, *args)
+          args = args.extract_options!
+          count = args.delete(:count)
+          start = args.delete(:start)
+          collection += &quot;;count=#{count}&quot; if count
+          collection += &quot;;start=#{start}&quot; if start
+          
           parameters = [resource, id, collection, *args].compact
-          return parameters.collect!{|param| CGI::escape(param.to_s).downcase}.join('/')
+          # return parameters.collect!{|param| CGI::escape(param.to_s).downcase}.join('/')
+          return parameters.collect!{|param| param.to_s.downcase}.join('/')
+          
         end
       end
             </diff>
      <filename>lib/yahoo-geoplanet/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -39,8 +39,8 @@ module Yahoo
       
       # Association Collections
       [&quot;parent&quot;, &quot;ancestors&quot;, &quot;belongtos&quot;, &quot;neighbors&quot;, &quot;siblings&quot;, &quot;children&quot;].each do |association|
-        define_method(association.to_sym) do
-          xml = self.class.fetch_and_parse(self.class.api_path(self.class.name, @woe_id, association), :select =&gt; :long)
+        define_method(association.to_sym) do |*options|
+          xml = self.class.fetch_and_parse(self.class.api_path(self.class.name, @woe_id, association, *options), :select =&gt; :long)
           value = xml.search(self.class.name.downcase).collect{|elem| self.class.new(elem)}
           return association.singularize == association ? value.first : value
         end</diff>
      <filename>lib/yahoo-geoplanet/place.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>617e557075a6bf0db5ab1f057759251acfdbfa90</id>
    </parent>
  </parents>
  <author>
    <name>Tom Taylor</name>
    <email>tom@mu.local</email>
  </author>
  <url>http://github.com/mattt/yahoo-geoplanet/commit/d70f80f4554fe30c92bcbe06584addba06f65065</url>
  <id>d70f80f4554fe30c92bcbe06584addba06f65065</id>
  <committed-date>2009-01-24T10:54:26-08:00</committed-date>
  <authored-date>2009-01-24T10:54:26-08:00</authored-date>
  <message>This is a bit nasty, but it allows pagination of results from children, ancestors and other methods.</message>
  <tree>add0191dc445aecc1b388856dff0f4b97177b29b</tree>
  <committer>
    <name>Tom Taylor</name>
    <email>tom@mu.local</email>
  </committer>
</commit>
