<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Module: Pubnub::SubscribeEvent::Removing — Documentation by YARD 0.8.7.6 </title> <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" /> <script type="text/javascript" charset="utf-8"> hasFrames = window.top.frames.main ? true : false; relpath = '../../'; framesUrl = "../../frames.html#!Pubnub/SubscribeEvent/Removing.html"; </script> <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script> <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script> </head> <body> <div id="header"> <div id="menu"> <a href="../../_index.html">Index (R)</a> » <span class='title'><span class='object_link'><a href="../../Pubnub.html" title="Pubnub (module)">Pubnub</a></span></span> » <span class='title'><span class='object_link'><a href="../SubscribeEvent.html" title="Pubnub::SubscribeEvent (class)">SubscribeEvent</a></span></span> » <span class="title">Removing</span> <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div> </div> <div id="search"> <a class="full_list_link" id="class_list_link" href="../../class_list.html"> Class List </a> <a class="full_list_link" id="method_list_link" href="../../method_list.html"> Method List </a> <a class="full_list_link" id="file_list_link" href="../../file_list.html"> File List </a> </div> <div class="clear"></div> </div> <iframe id="search_frame"></iframe> <div id="content"><h1>Module: Pubnub::SubscribeEvent::Removing </h1> <dl class="box"> <dt class="r1">Included in:</dt> <dd class="r1"><span class='object_link'><a href="../SubscribeEvent.html" title="Pubnub::SubscribeEvent (class)">Pubnub::SubscribeEvent</a></span></dd> <dt class="r2 last">Defined in:</dt> <dd class="r2 last">lib/pubnub/subscribe_event/removing.rb</dd> </dl> <div class="clear"></div> <h2>Overview</h2><div class="docstring"> <div class="discussion"> <p>Holds methods connected with channels and cg removal</p> </div> </div> <div class="tags"> </div> <h2> Instance Method Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small> </h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> <a href="#remove-instance_method" title="#remove (instance method)">- (Object) <strong>remove</strong>(event) </a> </span> <span class="summary_desc"><div class='inline'></div></span> </li> <li class="public "> <span class="summary_signature"> <a href="#remove_channels-instance_method" title="#remove_channels (instance method)">- (Object) <strong>remove_channels</strong>(event) </a> </span> <span class="summary_desc"><div class='inline'></div></span> </li> <li class="public "> <span class="summary_signature"> <a href="#remove_groups-instance_method" title="#remove_groups (instance method)">- (Object) <strong>remove_groups</strong>(event) </a> </span> <span class="summary_desc"><div class='inline'></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="remove-instance_method"> - (<tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>) <strong>remove</strong>(event) </h3><table class="source_code"> <tr> <td> <pre class="lines"> 20 21 22 23 24 25 26 27 28 29 30 31 32</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pubnub/subscribe_event/removing.rb', line 20</span> <span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span> <span class='const'>Pubnub</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Pubnub</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='embexpr_end'>}</span><span class='tstring_content'>#remove</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span> <span class='id identifier rubyid_kill_requester'>kill_requester</span> <span class='id identifier rubyid_remove_channels'>remove_channels</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span> <span class='id identifier rubyid_remove_groups'>remove_groups</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@channel</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>&&</span> <span class='ivar'>@group</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='id identifier rubyid_finish'>finish</span> <span class='kw'>else</span> <span class='id identifier rubyid_restart_heartbeat'>restart_heartbeat</span> <span class='kw'>if</span> <span class='ivar'>@heart</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> <h3 class="signature " id="remove_channels-instance_method"> - (<tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>) <strong>remove_channels</strong>(event) </h3><table class="source_code"> <tr> <td> <pre class="lines"> 13 14 15 16 17 18</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pubnub/subscribe_event/removing.rb', line 13</span> <span class='kw'>def</span> <span class='id identifier rubyid_remove_channels'>remove_channels</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span> <span class='id identifier rubyid_event'>event</span><span class='period'>.</span><span class='id identifier rubyid_channel'>channel</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_channel'>channel</span><span class='op'>|</span> <span class='id identifier rubyid_remove_channel'>remove_channel</span> <span class='id identifier rubyid_channel'>channel</span> <span class='id identifier rubyid_remove_c_cb'>remove_c_cb</span> <span class='id identifier rubyid_channel'>channel</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> <h3 class="signature " id="remove_groups-instance_method"> - (<tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>) <strong>remove_groups</strong>(event) </h3><table class="source_code"> <tr> <td> <pre class="lines"> 6 7 8 9 10 11</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pubnub/subscribe_event/removing.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_remove_groups'>remove_groups</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span> <span class='id identifier rubyid_event'>event</span><span class='period'>.</span><span class='id identifier rubyid_group'>group</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_group'>group</span><span class='op'>|</span> <span class='id identifier rubyid_remove_group'>remove_group</span> <span class='id identifier rubyid_group'>group</span> <span class='id identifier rubyid_remove_g_cb'>remove_g_cb</span> <span class='id identifier rubyid_group'>group</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> </div> </div> <div id="footer"> Generated on Tue Aug 18 16:02:32 2015 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.8.7.6 (ruby-2.1.6). </div> </body> </html>