html/classes/S33r/BucketListing.html in s33r-0.3 vs html/classes/S33r/BucketListing.html in s33r-0.3.1

- old
+ new

@@ -90,15 +90,15 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000077">[]</a>&nbsp;&nbsp; - <a href="#M000074">new</a>&nbsp;&nbsp; - <a href="#M000076">parse_listing</a>&nbsp;&nbsp; - <a href="#M000078">pretty</a>&nbsp;&nbsp; - <a href="#M000075">set_listing_xml</a>&nbsp;&nbsp; + <a href="#M000079">[]</a>&nbsp;&nbsp; + <a href="#M000076">new</a>&nbsp;&nbsp; + <a href="#M000078">parse_listing</a>&nbsp;&nbsp; + <a href="#M000080">pretty</a>&nbsp;&nbsp; + <a href="#M000077">set_listing_xml</a>&nbsp;&nbsp; </div> </div> </div> @@ -179,15 +179,15 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000074" class="method-detail"> - <a name="M000074"></a> + <div id="method-M000076" class="method-detail"> + <a name="M000076"></a> <div class="method-heading"> - <a href="#M000074" class="method-signature"> + <a href="#M000076" class="method-signature"> <span class="method-name">new</span><span class="method-args">(bucket_listing_xml, named_bucket=nil)</span> </a> </div> <div class="method-description"> @@ -205,12 +205,12 @@ inside this listing can be associated with that instance. This enables objects to be easily deleted without having to create a new <a href="Client.html">Client</a> instance. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000074-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000074-source"> + onclick="toggleCode('M000076-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000076-source"> <pre> <span class="ruby-comment cmt"># File lib/s33r/bucket_listing.rb, line 27</span> 27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">bucket_listing_xml</span>, <span class="ruby-identifier">named_bucket</span>=<span class="ruby-keyword kw">nil</span>) 28: <span class="ruby-ivar">@contents</span> = {} 29: <span class="ruby-ivar">@common_prefixes</span> = {} @@ -223,53 +223,53 @@ </div> </div> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000077" class="method-detail"> - <a name="M000077"></a> + <div id="method-M000079" class="method-detail"> + <a name="M000079"></a> <div class="method-heading"> - <a href="#M000077" class="method-signature"> + <a href="#M000079" class="method-signature"> <span class="method-name">[]</span><span class="method-args">(key)</span> </a> </div> <div class="method-description"> <p> Return an object in this bucket by key. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000077-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000077-source"> + onclick="toggleCode('M000079-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000079-source"> <pre> <span class="ruby-comment cmt"># File lib/s33r/bucket_listing.rb, line 72</span> 72: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>) 73: <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">key</span>] 74: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000076" class="method-detail"> - <a name="M000076"></a> + <div id="method-M000078" class="method-detail"> + <a name="M000078"></a> <div class="method-heading"> - <a href="#M000076" class="method-signature"> + <a href="#M000078" class="method-signature"> <span class="method-name">parse_listing</span><span class="method-args">(bucket_listing_xml)</span> </a> </div> <div class="method-description"> <p> Parse raw <a href="../XML.html">XML</a> ListBucketResponse from S3 into object instances. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000076-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000076-source"> + onclick="toggleCode('M000078-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000078-source"> <pre> <span class="ruby-comment cmt"># File lib/s33r/bucket_listing.rb, line 47</span> 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_listing</span>(<span class="ruby-identifier">bucket_listing_xml</span>) 48: <span class="ruby-identifier">doc</span> = <span class="ruby-constant">XML</span>.<span class="ruby-identifier">get_xml_doc</span>(<span class="ruby-identifier">bucket_listing_xml</span>) 49: @@ -296,52 +296,52 @@ </pre> </div> </div> </div> - <div id="method-M000078" class="method-detail"> - <a name="M000078"></a> + <div id="method-M000080" class="method-detail"> + <a name="M000080"></a> <div class="method-heading"> - <a href="#M000078" class="method-signature"> + <a href="#M000080" class="method-signature"> <span class="method-name">pretty</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Pretty listing of keys in alphabetical order. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000078-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000078-source"> + onclick="toggleCode('M000080-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000080-source"> <pre> <span class="ruby-comment cmt"># File lib/s33r/bucket_listing.rb, line 77</span> 77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty</span> 78: <span class="ruby-ivar">@contents</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-identifier">k</span> } 79: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000075" class="method-detail"> - <a name="M000075"></a> + <div id="method-M000077" class="method-detail"> + <a name="M000077"></a> <div class="method-heading"> - <a href="#M000075" class="method-signature"> + <a href="#M000077" class="method-signature"> <span class="method-name">set_listing_xml</span><span class="method-args">(bucket_listing_xml)</span> </a> </div> <div class="method-description"> <p> Convert a ListBucketResult <a href="../XML.html">XML</a> document into an object representation. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000075-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000075-source"> + onclick="toggleCode('M000077-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000077-source"> <pre> <span class="ruby-comment cmt"># File lib/s33r/bucket_listing.rb, line 36</span> 36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_listing_xml</span>(<span class="ruby-identifier">bucket_listing_xml</span>) 37: <span class="ruby-comment cmt"># remove the namespace declaration: libxml doesn't like it</span> 38: <span class="ruby-identifier">bucket_listing_xml</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/ xmlns=&quot;http:\/\/s3.amazonaws.com\/doc\/2006-03-01\/&quot;/</span>, <span class="ruby-value str">''</span>) \ No newline at end of file