1124 lines
29 KiB
HTML
1124 lines
29 KiB
HTML
<!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>
|
|
Class: WpUser
|
|
|
|
— Documentation by YARD 0.8.6.1
|
|
|
|
</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#!" + escape(window.location.href);
|
|
</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 (W)</a> »
|
|
|
|
|
|
<span class="title">WpUser</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>Class: WpUser
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
<dl class="box">
|
|
|
|
<dt class="r1">Inherits:</dt>
|
|
<dd class="r1">
|
|
<span class="inheritName"><span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></span>
|
|
|
|
<ul class="fullTree">
|
|
<li>Object</li>
|
|
|
|
<li class="next"><span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></li>
|
|
|
|
<li class="next">WpUser</li>
|
|
|
|
</ul>
|
|
<a href="#" class="inheritanceTree">show all</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="r2">Includes:</dt>
|
|
<dd class="r2"><span class='object_link'><a href="WpUser/BruteForcable.html" title="WpUser::BruteForcable (module)">BruteForcable</a></span>, <span class='object_link'><a href="WpUser/Existable.html" title="WpUser::Existable (module)">Existable</a></span></dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="r1 last">Defined in:</dt>
|
|
<dd class="r1 last">lib/common/models/wp_user.rb<span class="defines">,<br />
|
|
lib/common/models/wp_user/existable.rb,<br /> lib/common/models/wp_user/brute_forcable.rb</span>
|
|
</dd>
|
|
|
|
</dl>
|
|
<div class="clear"></div>
|
|
|
|
<h2>Defined Under Namespace</h2>
|
|
<p class="children">
|
|
|
|
|
|
<strong class="modules">Modules:</strong> <span class='object_link'><a href="WpUser/BruteForcable.html" title="WpUser::BruteForcable (module)">BruteForcable</a></span>, <span class='object_link'><a href="WpUser/Existable.html" title="WpUser::Existable (module)">Existable</a></span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<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="#display_name-instance_method" title="#display_name (instance method)">- (Object) <strong>display_name</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>Returns the value of attribute display_name.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#id-instance_method" title="#id (instance method)">- (Object) <strong>id</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>Returns the value of attribute id.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#login-instance_method" title="#login (instance method)">- (Object) <strong>login</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>Returns the value of attribute login.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#password-instance_method" title="#password (instance method)">- (Object) <strong>password</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>Returns the value of attribute password.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem.html#found_from-instance_method" title="WpItem#found_from (method)">#found_from</a></span>, <span class='object_link'><a href="WpItem.html#name-instance_method" title="WpItem#name (method)">#name</a></span>, <span class='object_link'><a href="WpItem.html#path-instance_method" title="WpItem#path (method)">#path</a></span>, <span class='object_link'><a href="WpItem.html#version%3D-instance_method" title="WpItem#version= (method)">#version</a></span>, <span class='object_link'><a href="WpItem.html#wp_content_dir-instance_method" title="WpItem#wp_content_dir (method)">#wp_content_dir</a></span>, <span class='object_link'><a href="WpItem.html#wp_plugins_dir-instance_method" title="WpItem#wp_plugins_dir (method)">#wp_plugins_dir</a></span></p>
|
|
|
|
|
|
|
|
<h3 class="inherited">Attributes included from <span class='object_link'><a href="WpItem/Vulnerable.html" title="WpItem::Vulnerable (module)">WpItem::Vulnerable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Vulnerable.html#vulns_file-instance_method" title="WpItem::Vulnerable#vulns_file (method)">#vulns_file</a></span>, <span class='object_link'><a href="WpItem/Vulnerable.html#vulns_xpath-instance_method" title="WpItem::Vulnerable#vulns_xpath (method)">#vulns_xpath</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="#%3C%3D%3E-instance_method" title="#<=> (instance method)">- (Object) <strong><=></strong>(other) </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#%3D%3D-instance_method" title="#== (instance method)">- (Boolean) <strong>==</strong>(other) </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#%3D%3D%3D-instance_method" title="#=== (instance method)">- (Boolean) <strong>===</strong>(other) </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#allowed_options-instance_method" title="#allowed_options (instance method)">- (Array<Symbol>) <strong>allowed_options</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#login_url-instance_method" title="#login_url (instance method)">- (String) <strong>login_url</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#uri-instance_method" title="#uri (instance method)">- (URI) <strong>uri</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>The uri to the auhor page.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpUser/BruteForcable.html" title="WpUser::BruteForcable (module)">BruteForcable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpUser/BruteForcable.html#brute_force-instance_method" title="WpUser::BruteForcable#brute_force (method)">#brute_force</a></span>, <span class='object_link'><a href="WpUser/BruteForcable.html#login_request-instance_method" title="WpUser::BruteForcable#login_request (method)">#login_request</a></span>, <span class='object_link'><a href="WpUser/BruteForcable.html#passwords_from_wordlist-class_method" title="WpUser::BruteForcable.passwords_from_wordlist (method)">passwords_from_wordlist</a></span>, <span class='object_link'><a href="WpUser/BruteForcable.html#progress_bar-instance_method" title="WpUser::BruteForcable#progress_bar (method)">#progress_bar</a></span>, <span class='object_link'><a href="WpUser/BruteForcable.html#valid_password%3F-instance_method" title="WpUser::BruteForcable#valid_password? (method)">#valid_password?</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpUser/Existable.html" title="WpUser::Existable (module)">Existable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpUser/Existable.html#display_name_from_body-class_method" title="WpUser::Existable.display_name_from_body (method)">display_name_from_body</a></span>, <span class='object_link'><a href="WpUser/Existable.html#exists_from_response%3F-instance_method" title="WpUser::Existable#exists_from_response? (method)">#exists_from_response?</a></span>, <span class='object_link'><a href="WpUser/Existable.html#load_from_response-instance_method" title="WpUser::Existable#load_from_response (method)">#load_from_response</a></span>, <span class='object_link'><a href="WpUser/Existable.html#login_from_author_pattern-class_method" title="WpUser::Existable.login_from_author_pattern (method)">login_from_author_pattern</a></span>, <span class='object_link'><a href="WpUser/Existable.html#login_from_body-class_method" title="WpUser::Existable.login_from_body (method)">login_from_body</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem.html#forge_uri-instance_method" title="WpItem#forge_uri (method)">#forge_uri</a></span>, <span class='object_link'><a href="WpItem.html#initialize-instance_method" title="WpItem#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="WpItem.html#set_options-instance_method" title="WpItem#set_options (method)">#set_options</a></span>, <span class='object_link'><a href="WpItem.html#url-instance_method" title="WpItem#url (method)">#url</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Output.html" title="WpItem::Output (module)">WpItem::Output</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Output.html#output-instance_method" title="WpItem::Output#output (method)">#output</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Infos.html" title="WpItem::Infos (module)">WpItem::Infos</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Infos.html#changelog_url-instance_method" title="WpItem::Infos#changelog_url (method)">#changelog_url</a></span>, <span class='object_link'><a href="WpItem/Infos.html#error_log_url-instance_method" title="WpItem::Infos#error_log_url (method)">#error_log_url</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_changelog%3F-instance_method" title="WpItem::Infos#has_changelog? (method)">#has_changelog?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_directory_listing%3F-instance_method" title="WpItem::Infos#has_directory_listing? (method)">#has_directory_listing?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_error_log%3F-instance_method" title="WpItem::Infos#has_error_log? (method)">#has_error_log?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_readme%3F-instance_method" title="WpItem::Infos#has_readme? (method)">#has_readme?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#readme_url-instance_method" title="WpItem::Infos#readme_url (method)">#readme_url</a></span>, <span class='object_link'><a href="WpItem/Infos.html#url_is_200%3F-instance_method" title="WpItem::Infos#url_is_200? (method)">#url_is_200?</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Existable.html" title="WpItem::Existable (module)">WpItem::Existable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Existable.html#exists%3F-instance_method" title="WpItem::Existable#exists? (method)">#exists?</a></span>, <span class='object_link'><a href="WpItem/Existable.html#exists_from_response%3F-instance_method" title="WpItem::Existable#exists_from_response? (method)">#exists_from_response?</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Vulnerable.html" title="WpItem::Vulnerable (module)">WpItem::Vulnerable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Vulnerable.html#vulnerabilities-instance_method" title="WpItem::Vulnerable#vulnerabilities (method)">#vulnerabilities</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Versionable.html" title="WpItem::Versionable (module)">WpItem::Versionable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Versionable.html#version-instance_method" title="WpItem::Versionable#version (method)">#version</a></span></p>
|
|
<div id="constructor_details" class="method_details_list">
|
|
<h2>Constructor Details</h2>
|
|
|
|
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="WpItem.html#initialize-instance_method" title="WpItem#initialize (method)">WpItem</a></span></p>
|
|
|
|
</div>
|
|
|
|
<div id="instance_attr_details" class="attr_details">
|
|
<h2>Instance Attribute Details</h2>
|
|
|
|
|
|
<span id="display_name=-instance_method"></span>
|
|
<div class="method_details first">
|
|
<h3 class="signature first" id="display_name-instance_method">
|
|
|
|
- (<tt>Object</tt>) <strong>display_name</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>Returns the value of attribute display_name</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
10
|
|
11
|
|
12</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 10</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_display_name'>display_name</span>
|
|
<span class='ivar'>@display_name</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<span id="id=-instance_method"></span>
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="id-instance_method">
|
|
|
|
- (<tt>Object</tt>) <strong>id</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>Returns the value of attribute id</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
10
|
|
11
|
|
12</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 10</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
|
<span class='ivar'>@id</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<span id="login=-instance_method"></span>
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="login-instance_method">
|
|
|
|
- (<tt>Object</tt>) <strong>login</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>Returns the value of attribute login</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
10
|
|
11
|
|
12</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 10</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_login'>login</span>
|
|
<span class='ivar'>@login</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<span id="password=-instance_method"></span>
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="password-instance_method">
|
|
|
|
- (<tt>Object</tt>) <strong>password</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>Returns the value of attribute password</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
10
|
|
11
|
|
12</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 10</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_password'>password</span>
|
|
<span class='ivar'>@password</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div id="instance_method_details" class="method_details_list">
|
|
<h2>Instance Method Details</h2>
|
|
|
|
|
|
<div class="method_details first">
|
|
<h3 class="signature first" id="<=>-instance_method">
|
|
|
|
- (<tt>Object</tt>) <strong><=></strong>(other)
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
<p class="tag_title">Parameters:</p>
|
|
<ul class="param">
|
|
|
|
<li>
|
|
|
|
<span class='name'>other</span>
|
|
|
|
|
|
<span class='type'>(<tt><span class='object_link'><a href="" title="WpUser (class)">WpUser</a></span></tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
38
|
|
39
|
|
40</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 38</span>
|
|
|
|
<span class='kw'>def</span> <span class='op'><=></span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
|
<span class='id identifier rubyid_id'>id</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="==-instance_method">
|
|
|
|
- (<tt>Boolean</tt>) <strong>==</strong>(other)
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
<p class="tag_title">Parameters:</p>
|
|
<ul class="param">
|
|
|
|
<li>
|
|
|
|
<span class='name'>other</span>
|
|
|
|
|
|
<span class='type'>(<tt><span class='object_link'><a href="" title="WpUser (class)">WpUser</a></span></tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
45
|
|
46
|
|
47</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 45</span>
|
|
|
|
<span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
|
<span class='kw'>self</span> <span class='op'>===</span> <span class='id identifier rubyid_other'>other</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="===-instance_method">
|
|
|
|
- (<tt>Boolean</tt>) <strong>===</strong>(other)
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
<p class="tag_title">Parameters:</p>
|
|
<ul class="param">
|
|
|
|
<li>
|
|
|
|
<span class='name'>other</span>
|
|
|
|
|
|
<span class='type'>(<tt><span class='object_link'><a href="" title="WpUser (class)">WpUser</a></span></tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
52
|
|
53
|
|
54</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 52</span>
|
|
|
|
<span class='kw'>def</span> <span class='op'>===</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
|
<span class='id identifier rubyid_id'>id</span> <span class='op'>===</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span> <span class='op'>&&</span> <span class='id identifier rubyid_login'>login</span> <span class='op'>===</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_login'>login</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="allowed_options-instance_method">
|
|
|
|
- (<tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span><Symbol></tt>) <strong>allowed_options</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span><Symbol></tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
13</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 13</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_allowed_options'>allowed_options</span><span class='semicolon'>;</span> <span class='lbracket'>[</span><span class='symbol'>:id</span><span class='comma'>,</span> <span class='symbol'>:login</span><span class='comma'>,</span> <span class='symbol'>:display_name</span><span class='comma'>,</span> <span class='symbol'>:password</span><span class='rbracket'>]</span> <span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="login_url-instance_method">
|
|
|
|
- (<tt>String</tt>) <strong>login_url</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt>String</tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
25
|
|
26
|
|
27</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 25</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_login_url'>login_url</span>
|
|
<span class='ivar'>@uri</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wp-login.php</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="to_s-instance_method">
|
|
|
|
- (<tt>String</tt>) <strong>to_s</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt>String</tt>)</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
30
|
|
31
|
|
32
|
|
33
|
|
34
|
|
35</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 30</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
<span class='id identifier rubyid_s'>s</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
<span class='id identifier rubyid_s'>s</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> | </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_login'>login</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_login'>login</span>
|
|
<span class='id identifier rubyid_s'>s</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> | </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_display_name'>display_name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_display_name'>display_name</span>
|
|
<span class='id identifier rubyid_s'>s</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="uri-instance_method">
|
|
|
|
- (<tt><span class='object_link'><a href="URI.html" title="URI (module)">URI</a></span></tt>) <strong>uri</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>The uri to the auhor page</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt><span class='object_link'><a href="URI.html" title="URI (module)">URI</a></span></tt>)</span>
|
|
|
|
|
|
|
|
—
|
|
<div class='inline'>
|
|
<p>The uri to the auhor page</p>
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20
|
|
21
|
|
22</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_user.rb', line 16</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_uri'>uri</span>
|
|
<span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span>
|
|
<span class='kw'>return</span> <span class='ivar'>@uri</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>?author=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
<span class='kw'>else</span>
|
|
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>The id is nil</span><span class='tstring_end'>'</span></span>
|
|
<span class='kw'>end</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
Generated on Tue Apr 30 23:05:06 2013 by
|
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
0.8.6.1 (ruby-1.9.3).
|
|
</div>
|
|
|
|
</body>
|
|
</html> |