Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 4b137326f38b5adf1f9ffd3dbbb48a7b > files > 349

deltacloud-core-doc-0.4.0-4.fc15.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Deltacloud::Drivers::Mock::Client</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Deltacloud::Drivers::Mock::Client</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../files/lib/deltacloud/drivers/mock/mock_client_rb.html">
                lib/deltacloud/drivers/mock/mock_client.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000547">build</a>&nbsp;&nbsp;
      <a href="#M000549">build_all</a>&nbsp;&nbsp;
      <a href="#M000550">destroy</a>&nbsp;&nbsp;
      <a href="#M000541">dir</a>&nbsp;&nbsp;
      <a href="#M000542">file</a>&nbsp;&nbsp;
      <a href="#M000543">files</a>&nbsp;&nbsp;
      <a href="#M000545">load</a>&nbsp;&nbsp;
      <a href="#M000548">load_all</a>&nbsp;&nbsp;
      <a href="#M000544">members</a>&nbsp;&nbsp;
      <a href="#M000540">new</a>&nbsp;&nbsp;
      <a href="#M000546">store</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000540" class="method-detail">
        <a name="M000540"></a>

        <div class="method-heading">
          <a href="Client.src/M000540.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000540.html');return false;">
          <span class="method-name">new</span><span class="method-args">(storage_root)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000547" class="method-detail">
        <a name="M000547"></a>

        <div class="method-heading">
          <a href="Client.src/M000547.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000547.html');return false;">
          <span class="method-name">build</span><span class="method-args">(klass, id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Return the object with id <tt>id</tt> of class <tt>klass</tt> from the
collection derived from the classes name
</p>
        </div>
      </div>

      <div id="method-M000549" class="method-detail">
        <a name="M000549"></a>

        <div class="method-heading">
          <a href="Client.src/M000549.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000549.html');return false;">
          <span class="method-name">build_all</span><span class="method-args">(klass)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Return an array of model objects of the resources in the collection
corresponding to class. The name of the collection is derived from the name
of the class
</p>
        </div>
      </div>

      <div id="method-M000550" class="method-detail">
        <a name="M000550"></a>

        <div class="method-heading">
          <a href="Client.src/M000550.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000550.html');return false;">
          <span class="method-name">destroy</span><span class="method-args">(collection, id)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000541" class="method-detail">
        <a name="M000541"></a>

        <div class="method-heading">
          <a href="Client.src/M000541.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000541.html');return false;">
          <span class="method-name">dir</span><span class="method-args">(collection)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000542" class="method-detail">
        <a name="M000542"></a>

        <div class="method-heading">
          <a href="Client.src/M000542.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000542.html');return false;">
          <span class="method-name">file</span><span class="method-args">(collection, id)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000543" class="method-detail">
        <a name="M000543"></a>

        <div class="method-heading">
          <a href="Client.src/M000543.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000543.html');return false;">
          <span class="method-name">files</span><span class="method-args">(collection)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000545" class="method-detail">
        <a name="M000545"></a>

        <div class="method-heading">
          <a href="Client.src/M000545.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000545.html');return false;">
          <span class="method-name">load</span><span class="method-args">(collection, id)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000548" class="method-detail">
        <a name="M000548"></a>

        <div class="method-heading">
          <a href="Client.src/M000548.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000548.html');return false;">
          <span class="method-name">load_all</span><span class="method-args">(collection)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Return an array of hashes of all the resources in the collection
</p>
        </div>
      </div>

      <div id="method-M000544" class="method-detail">
        <a name="M000544"></a>

        <div class="method-heading">
          <a href="Client.src/M000544.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000544.html');return false;">
          <span class="method-name">members</span><span class="method-args">(collection)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Return the ID&#8216;s of all <a href="Client.html#M000544">members</a> of
<tt>collection</tt>
</p>
        </div>
      </div>

      <div id="method-M000546" class="method-detail">
        <a name="M000546"></a>

        <div class="method-heading">
          <a href="Client.src/M000546.html" target="Code" class="method-signature"
            onclick="popupCode('Client.src/M000546.html');return false;">
          <span class="method-name">store</span><span class="method-args">(collection, obj)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>