<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Class: Discorb::Webhook::URLWebhook — Documentation by YARD 0.9.26 </title> <link rel="stylesheet" href="../../css/style.css" type="text/css" /> <link rel="stylesheet" href="../../css/common.css" type="text/css" /> <script type="text/javascript"> pathId = "Discorb::Webhook::URLWebhook"; relpath = '../../'; </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 class="nav_wrap"> <iframe id="nav" src="../../class_list.html?1"></iframe> <div id="resizer"></div> </div> <div id="main" tabindex="-1"> <div id="header"> <div id="menu"> <a href="../../a_index.html">Index (U)</a> » <span class='title'><span class='object_link'><a href="../../Discorb.html" title="Discorb (module)">Discorb</a></span></span> » <span class='title'><span class='object_link'><a href="../Webhook.html" title="Discorb::Webhook (class)">Webhook</a></span></span> » <span class="title">URLWebhook</span> </div> <div id="search"> <a class="full_list_link" id="class_list_link" href="../../class_list.html"> <svg width="24" height="24"> <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect> <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect> <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect> </svg> </a> </div> <div class="clear"></div> </div> <div id="content"><h1>Class: Discorb::Webhook::URLWebhook </h1> <div class="box_info"> <dl> <dt>Inherits:</dt> <dd> <span class="inheritName"><span class='object_link'><a href="../Webhook.html" title="Discorb::Webhook (class)">Discorb::Webhook</a></span></span> <ul class="fullTree"> <li>Object</li> <li class="next"><span class='object_link'><a href="../Webhook.html" title="Discorb::Webhook (class)">Discorb::Webhook</a></span></li> <li class="next">Discorb::Webhook::URLWebhook</li> </ul> <a href="#" class="inheritanceTree">show all</a> </dd> </dl> <dl> <dt>Defined in:</dt> <dd>lib/discorb/webhook.rb</dd> </dl> </div> <h2>Overview</h2><div class="docstring"> <div class="discussion"> <p>Represents a webhook from URL.</p> </div> </div> <div class="tags"> </div> <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> <a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> ⇒ String </a> </span> <span class="note title readonly">readonly</span> <span class="summary_desc"><div class='inline'><p>The URL of the webhook.</p> </div></span> </li> </ul> <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Webhook.html" title="Discorb::Webhook (class)">Discorb::Webhook</a></span></h3> <p class="inherited"><span class='object_link'><a href="../Webhook.html#application_id-instance_method" title="Discorb::Webhook#application_id (method)">#application_id</a></span>, <span class='object_link'><a href="../Webhook.html#avatar-instance_method" title="Discorb::Webhook#avatar (method)">#avatar</a></span>, <span class='object_link'><a href="../Webhook.html#channel_id-instance_method" title="Discorb::Webhook#channel_id (method)">#channel_id</a></span>, <span class='object_link'><a href="../Webhook.html#guild_id-instance_method" title="Discorb::Webhook#guild_id (method)">#guild_id</a></span>, <span class='object_link'><a href="../Webhook.html#name-instance_method" title="Discorb::Webhook#name (method)">#name</a></span>, <span class='object_link'><a href="../Webhook.html#token-instance_method" title="Discorb::Webhook#token (method)">#token</a></span>, <span class='object_link'><a href="../Webhook.html#user-instance_method" title="Discorb::Webhook#user (method)">#user</a></span></p> <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="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(url) ⇒ URLWebhook </a> </span> <span class="note title constructor">constructor</span> <span class="summary_desc"><div class='inline'><p>Initializes the webhook from URL.</p> </div></span> </li> </ul> <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Webhook.html" title="Discorb::Webhook (class)">Discorb::Webhook</a></span></h3> <p class="inherited"><span class='object_link'><a href="../Webhook.html#delete!-instance_method" title="Discorb::Webhook#delete! (method)">#delete!</a></span>, <span class='object_link'><a href="../Webhook.html#delete_message!-instance_method" title="Discorb::Webhook#delete_message! (method)">#delete_message!</a></span>, <span class='object_link'><a href="../Webhook.html#edit-instance_method" title="Discorb::Webhook#edit (method)">#edit</a></span>, <span class='object_link'><a href="../Webhook.html#edit_message-instance_method" title="Discorb::Webhook#edit_message (method)">#edit_message</a></span>, <span class='object_link'><a href="../Webhook.html#from_url-class_method" title="Discorb::Webhook.from_url (method)">from_url</a></span>, <span class='object_link'><a href="../Webhook.html#inspect-instance_method" title="Discorb::Webhook#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Webhook.html#new-class_method" title="Discorb::Webhook.new (method)">new</a></span>, <span class='object_link'><a href="../Webhook.html#post-instance_method" title="Discorb::Webhook#post (method)">#post</a></span></p> <div id="constructor_details" class="method_details_list"> <h2>Constructor Details</h2> <div class="method_details first"> <h3 class="signature first" id="initialize-instance_method"> #<strong>initialize</strong>(url) ⇒ <tt><span class='object_link'><a href="" title="Discorb::Webhook::URLWebhook (class)">URLWebhook</a></span></tt> </h3><div class="docstring"> <div class="discussion"> <p>Initializes the webhook from URL.</p> </div> </div> <div class="tags"> <p class="tag_title">Parameters:</p> <ul class="param"> <li> <span class='name'>url</span> <span class='type'>(<tt>String</tt>)</span> — <div class='inline'><p>The URL of the webhook.</p> </div> </li> </ul> </div><table class="source_code"> <tr> <td> <pre class="lines"> 200 201 202 203 204</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/discorb/webhook.rb', line 200</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span> <span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span> <span class='ivar'>@token</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span> <span class='ivar'>@internet</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Discorb.html" title="Discorb (module)">Discorb</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Internet.html" title="Discorb::Internet (class)">Internet</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> </div> <div id="instance_attr_details" class="attr_details"> <h2>Instance Attribute Details</h2> <span id=""></span> <div class="method_details first"> <h3 class="signature first" id="url-instance_method"> #<strong>url</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span> </h3><div class="docstring"> <div class="discussion"> <p>Returns The URL of the webhook.</p> </div> </div> <div class="tags"> <p class="tag_title">Returns:</p> <ul class="return"> <li> <span class='type'>(<tt>String</tt>)</span> — <div class='inline'><p>The URL of the webhook.</p> </div> </li> </ul> </div><table class="source_code"> <tr> <td> <pre class="lines"> 193 194 195</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/discorb/webhook.rb', line 193</span> <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span> <span class='ivar'>@url</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> </div> </div> <div id="footer"> Generated from <a href="https://github.com/discorb-lib/discorb/tree/f2efd3528ec4c4b6b15b2788f8ff8b788eb88cdb"><code>f2efd3528ec4c4b6b15b2788f8ff8b788eb88cdb</code></a>, version v0.0.4, with YARD 0.9.26. </div> </div> </body> </html>