lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html in zendesk_api-0.3.14 vs lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html in zendesk_api-0.4.0.rc1

- old
+ new

@@ -4,11 +4,11 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Module: ZendeskAPI::Destroy::ClassMethod - &mdash; Documentation by YARD 0.8.4.1 + &mdash; Documentation by YARD 0.8.5.2 </title> <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" /> @@ -100,11 +100,11 @@ <ul class="summary"> <li class="public "> <span class="summary_signature"> - <a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong>(client, opts = {}) </a> + <a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong>(client, attributes = {}) </a> </span> @@ -114,41 +114,91 @@ - <span class="summary_desc"><div class='inline'> -<p>Deletes a resource given the id passed in.</p> -</div></span> + <span class="summary_desc"><div class='inline'></div></span> </li> - </ul> - + <li class="public "> + <span class="summary_signature"> + + <a href="#destroy%21-instance_method" title="#destroy! (instance method)">- (Object) <strong>destroy!</strong>(client, opts = {}) </a> + - + + </span> + + + <span class="summary_desc"><div class='inline'> +<p>Deletes a resource given the id passed in.</p> +</div></span> + +</li> + + + </ul> + + + + <div id="instance_method_details" class="method_details_list"> <h2>Instance Method Details</h2> <div class="method_details first"> <h3 class="signature first" id="destroy-instance_method"> - - (<tt>Object</tt>) <strong>destroy</strong>(client, opts = {}) + - (<tt>Object</tt>) <strong>destroy</strong>(client, attributes = {}) +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +169 +170 +171 +172 +173</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/zendesk_api/actions.rb', line 169</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_attributes'>attributes</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_destroy!'>destroy!</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_attributes'>attributes</span><span class='rparen'>)</span> +<span class='kw'>rescue</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Error</span><span class='op'>::</span><span class='const'>ClientError</span> + <span class='kw'>false</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> + <h3 class="signature " id="destroy!-instance_method"> + + - (<tt>Object</tt>) <strong>destroy!</strong>(client, opts = {}) + + + + + </h3><div class="docstring"> <div class="discussion"> <p>Deletes a resource given the id passed in.</p> @@ -200,25 +250,25 @@ <tr> <td> <pre class="lines"> +158 +159 +160 +161 162 163 164 165 166 -167 -168 -169 -170 -171</pre> +167</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/zendesk_api/actions.rb', line 162</span> + <pre class="code"><span class="info file"># File 'lib/zendesk_api/actions.rb', line 158</span> -<span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_destroy!'>destroy!</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span> <span class='comment'># so we can use client.logger in rescue </span> <span class='id identifier rubyid_association'>association</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:association</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Association</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='kw'>self</span><span class='rparen'>)</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_connection'>connection</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='period'>.</span><span class='id identifier rubyid_generate_path'>generate_path</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_req'>req</span><span class='op'>|</span> <span class='id identifier rubyid_req'>req</span><span class='period'>.</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span> @@ -234,12 +284,12 @@ </div> </div> <div id="footer"> - Generated on Mon Feb 11 17:45:36 2013 by + Generated on Wed May 15 18:59:28 2013 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.8.4.1 (ruby-1.9.3). + 0.8.5.2 (ruby-1.9.3). </div> </body> </html> \ No newline at end of file