doc files;
@@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: ApplicationController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/application_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/application_controller.rb">app/controllers/application_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActionController::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">ApplicationController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,362 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: ApplicationHelper</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/helpers/application_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/helpers/application_helper.rb">app/helpers/application_helper.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-camelCaseString">#camelCaseString</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-get_album_info">#get_album_info</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-trimString">#trimString</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-validate_img_url">#validate_img_url</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">ApplicationHelper</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
<p>
|
||||||
|
encoding: UTF-8
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="camel-ase-tring-method" class="method-detail ">
|
||||||
|
<a name="method-i-camelCaseString"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">camelCaseString</span><span
|
||||||
|
class="method-args">(phrase)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="camel-ase-tring-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/helpers/application_helper.rb, line 26</span>
|
||||||
|
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelCaseString</span> <span class="ruby-identifier">phrase</span>
|
||||||
|
|
||||||
|
27: <span class="ruby-identifier">phrase</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^[a-z]|\s+[a-z]/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">upcase</span> }
|
||||||
|
|
||||||
|
28: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">phrase</span>
|
||||||
|
|
||||||
|
29: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-album-info-method" class="method-detail ">
|
||||||
|
<a name="method-i-get_album_info"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">get_album_info</span><span
|
||||||
|
class="method-args">(album, artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-album-info-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/helpers/application_helper.rb, line 17</span>
|
||||||
|
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_album_info</span> <span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-ivar">@result</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Album</span>.<span class="ruby-identifier">getInfo</span>(<span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>)
|
||||||
|
|
||||||
|
19: <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">album</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="trim-tring-method" class="method-detail ">
|
||||||
|
<a name="method-i-trimString"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">trimString</span><span
|
||||||
|
class="method-args">(str, length)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="trim-tring-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/helpers/application_helper.rb, line 22</span>
|
||||||
|
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trimString</span> <span class="ruby-identifier">str</span>, <span class="ruby-identifier">length</span>
|
||||||
|
|
||||||
|
23: <span class="ruby-identifier">truncate</span> <span class="ruby-identifier">str</span>, <span class="ruby-value">:length</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-value">:omission</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"…"</span>
|
||||||
|
|
||||||
|
24: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="validate-img-url-method" class="method-detail ">
|
||||||
|
<a name="method-i-validate_img_url"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">validate_img_url</span><span
|
||||||
|
class="method-args">(image, type, size)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="validate-img-url-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/helpers/application_helper.rb, line 4</span>
|
||||||
|
4: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_img_url</span> <span class="ruby-identifier">image</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">size</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-ivar">@attr</span> = (<span class="ruby-identifier">type</span><span class="ruby-operator">==</span><span class="ruby-value str">"gallery"</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"name"</span> <span class="ruby-operator">:</span> <span class="ruby-value str">"size"</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-identifier">image</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">img</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
7: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">img</span>[<span class="ruby-ivar">@attr</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_s</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">img</span>[<span class="ruby-node">"#text"</span>].<span class="ruby-identifier">blank?</span>
|
||||||
|
|
||||||
|
9: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"/images/placeholder/#{type.to_s}.png"</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">img</span>[<span class="ruby-node">"#text"</span>]
|
||||||
|
|
||||||
|
12: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
13: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
14:
|
||||||
|
|
||||||
|
15: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: Artist</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/models/artist_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/models/artist.rb">app/models/artist.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActiveRecord::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">Artist</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,453 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: ArtistsController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/artists_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/artists_controller.rb">app/controllers/artists_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="ApplicationController.html">ApplicationController</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-album_info">#album_info</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-index">#index</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-more_albums">#more_albums</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-more_tracks">#more_tracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-prepare">#prepare</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-show">#show</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">ArtistsController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="album-info-method" class="method-detail ">
|
||||||
|
<a name="method-i-album_info"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">album_info</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="album-info-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/artists_controller.rb, line 46</span>
|
||||||
|
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">album_info</span>
|
||||||
|
|
||||||
|
47: <span class="ruby-ivar">@album</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Album</span>.<span class="ruby-identifier">getInfo</span> <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">unescape</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:album</span>]), <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">unescape</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:artist</span>])
|
||||||
|
|
||||||
|
48: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
49:
|
||||||
|
|
||||||
|
50: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"album_info"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{<span class="ruby-value">:album=</span><span class="ruby-operator">></span><span class="ruby-ivar">@album</span>}
|
||||||
|
|
||||||
|
51: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="index-method" class="method-detail ">
|
||||||
|
<a name="method-i-index"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">index</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="index-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/artists_controller.rb, line 25</span>
|
||||||
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
||||||
|
|
||||||
|
26: <span class="ruby-identifier">redirect_to</span> <span class="ruby-value">:root</span>
|
||||||
|
|
||||||
|
27: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="more-albums-method" class="method-detail ">
|
||||||
|
<a name="method-i-more_albums"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">more_albums</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="more-albums-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/artists_controller.rb, line 38</span>
|
||||||
|
38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">more_albums</span>
|
||||||
|
|
||||||
|
39: <span class="ruby-identifier">prepare</span> <span class="ruby-identifier">params</span>
|
||||||
|
|
||||||
|
40: <span class="ruby-ivar">@albums</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">getTopAlbums</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:q</span>], <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:albums</span>], (<span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>] <span class="ruby-operator">/</span> <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:albums</span>] <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
|
||||||
|
|
||||||
|
41: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
42:
|
||||||
|
|
||||||
|
43: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"more_albums"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{<span class="ruby-value">:albums=</span><span class="ruby-operator">></span><span class="ruby-ivar">@albums</span>}
|
||||||
|
|
||||||
|
44: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="more-tracks-method" class="method-detail ">
|
||||||
|
<a name="method-i-more_tracks"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">more_tracks</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="more-tracks-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/artists_controller.rb, line 30</span>
|
||||||
|
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">more_tracks</span>
|
||||||
|
|
||||||
|
31: <span class="ruby-identifier">prepare</span> <span class="ruby-identifier">params</span>
|
||||||
|
|
||||||
|
32: <span class="ruby-ivar">@tracks</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">getTopTracks</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:q</span>], <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:tracks</span>], (<span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>] <span class="ruby-operator">/</span> <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:tracks</span>] <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
|
||||||
|
|
||||||
|
33: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
34:
|
||||||
|
|
||||||
|
35: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"more_tracks"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{<span class="ruby-value">:tracks=</span><span class="ruby-operator">></span><span class="ruby-ivar">@tracks</span>}
|
||||||
|
|
||||||
|
36: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="prepare-method" class="method-detail ">
|
||||||
|
<a name="method-i-prepare"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">prepare</span><span
|
||||||
|
class="method-args">(params)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="prepare-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/artists_controller.rb, line 53</span>
|
||||||
|
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepare</span> <span class="ruby-identifier">params</span>
|
||||||
|
|
||||||
|
54: <span class="ruby-identifier">params</span>[<span class="ruby-value">:q</span>] = <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">unescape</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:q</span>]
|
||||||
|
|
||||||
|
55: <span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>] = <span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>].<span class="ruby-identifier">to_i</span>
|
||||||
|
|
||||||
|
56: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="show-method" class="method-detail ">
|
||||||
|
<a name="method-i-show"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">show</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="show-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/artists_controller.rb, line 7</span>
|
||||||
|
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-identifier">artist</span> = <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">unescape</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:artist</span>]
|
||||||
|
|
||||||
|
9:
|
||||||
|
|
||||||
|
10: <span class="ruby-ivar">@artist</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">getInfo</span> <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-ivar">@tracks</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">getTopTracks</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:tracks</span>]
|
||||||
|
|
||||||
|
12: <span class="ruby-ivar">@albums</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">getTopAlbums</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:albums</span>]
|
||||||
|
|
||||||
|
13: <span class="ruby-ivar">@related</span>= <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">getSimilar</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:similar</span>]
|
||||||
|
|
||||||
|
14:
|
||||||
|
|
||||||
|
15: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
16:
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"show"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{
|
||||||
|
|
||||||
|
18: <span class="ruby-value">:artist=</span><span class="ruby-operator">></span><span class="ruby-ivar">@artist</span>,
|
||||||
|
|
||||||
|
19: <span class="ruby-value">:tracks=</span><span class="ruby-operator">></span><span class="ruby-ivar">@tracks</span>,
|
||||||
|
|
||||||
@@ -0,0 +1,291 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: ChartsController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/charts_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/charts_controller.rb">app/controllers/charts_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="ApplicationController.html">ApplicationController</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-index">#index</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-more">#more</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">ChartsController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="index-method" class="method-detail ">
|
||||||
|
<a name="method-i-index"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">index</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="index-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/charts_controller.rb, line 3</span>
|
||||||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
||||||
|
|
||||||
|
4: <span class="ruby-ivar">@charts</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Chart</span>.<span class="ruby-identifier">getTopArtists</span> <span class="ruby-value">20</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
6:
|
||||||
|
|
||||||
|
7: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"index"</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="more-method" class="method-detail ">
|
||||||
|
<a name="method-i-more"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">more</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="more-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/charts_controller.rb, line 11</span>
|
||||||
|
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">more</span>
|
||||||
|
|
||||||
|
12: <span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>] = <span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>].<span class="ruby-identifier">to_i</span>
|
||||||
|
|
||||||
|
13:
|
||||||
|
|
||||||
|
14: <span class="ruby-ivar">@charts</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Chart</span>.<span class="ruby-identifier">getTopArtists</span> <span class="ruby-value">20</span>, (<span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>] <span class="ruby-operator">/</span> <span class="ruby-value">20</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
|
||||||
|
|
||||||
|
15: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
16:
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"more_charts"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{<span class="ruby-value">:charts=</span><span class="ruby-operator">></span><span class="ruby-ivar">@charts</span>}
|
||||||
|
|
||||||
|
18: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: DeviseAuth</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
<div id="namespace-list-section" class="section">
|
||||||
|
<h3 class="section-header">Namespace</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">DeviseAuth</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,335 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: DeviseAuth::RegistrationsController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../app/controllers/devise_auth/registrations_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/devise_auth/registrations_controller.rb">app/controllers/devise_auth/registrations_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">Devise::RegistrationsController</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-create">#create</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-edit">#edit</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-new">#new</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">DeviseAuth::RegistrationsController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="create-method" class="method-detail ">
|
||||||
|
<a name="method-i-create"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">create</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="create-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/devise_auth/registrations_controller.rb, line 12</span>
|
||||||
|
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
|
||||||
|
|
||||||
|
13: <span class="ruby-identifier">build_resource</span>
|
||||||
|
|
||||||
|
14:
|
||||||
|
|
||||||
|
15: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resource</span>.<span class="ruby-identifier">save</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resource</span>.<span class="ruby-identifier">active_for_authentication?</span>
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">set_flash_message</span> <span class="ruby-value">:notice</span>, <span class="ruby-value">:signed_up</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_navigational_format?</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-identifier">sign_in</span>(<span class="ruby-identifier">resource_name</span>, <span class="ruby-identifier">resource</span>)
|
||||||
|
|
||||||
|
19: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">user_path</span>(<span class="ruby-identifier">resource</span>)
|
||||||
|
|
||||||
|
20: <span class="ruby-keyword kw">else</span>
|
||||||
|
|
||||||
|
21: <span class="ruby-identifier">set_flash_message</span> <span class="ruby-value">:notice</span>, <span class="ruby-value">:inactive_signed_up</span>, <span class="ruby-value">:reason</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">resource</span>.<span class="ruby-identifier">inactive_message</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_navigational_format?</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-identifier">expire_session_data_after_sign_in!</span>
|
||||||
|
|
||||||
|
23: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">user_path</span>(<span class="ruby-identifier">resource</span>)
|
||||||
|
|
||||||
|
24: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
25: <span class="ruby-keyword kw">else</span>
|
||||||
|
|
||||||
|
26: <span class="ruby-identifier">clean_up_passwords</span>(<span class="ruby-identifier">resource</span>)
|
||||||
|
|
||||||
|
27: <span class="ruby-identifier">respond_with_navigational</span>(<span class="ruby-identifier">resource</span>) { <span class="ruby-identifier">render</span> <span class="ruby-value">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"devise/registrations/new"</span> }
|
||||||
|
|
||||||
|
28: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
29: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="edit-method" class="method-detail ">
|
||||||
|
<a name="method-i-edit"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">edit</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="edit-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/devise_auth/registrations_controller.rb, line 8</span>
|
||||||
|
8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>
|
||||||
|
|
||||||
|
9: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"devise/registrations/edit"</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="new-method" class="method-detail ">
|
||||||
|
<a name="method-i-new"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">new</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="new-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/devise_auth/registrations_controller.rb, line 3</span>
|
||||||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>
|
||||||
|
|
||||||
|
4: <span class="ruby-identifier">resource</span> = <span class="ruby-identifier">build_resource</span>({})
|
||||||
|
|
||||||
|
5: <span class="ruby-identifier">respond_with_navigational</span>(<span class="ruby-identifier">resource</span>) { <span class="ruby-identifier">render</span> <span class="ruby-value">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"devise/registrations/new"</span> }
|
||||||
|
|
||||||
|
6: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,288 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: DeviseAuth::SessionsController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../app/controllers/devise_auth/sessions_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/devise_auth/sessions_controller.rb">app/controllers/devise_auth/sessions_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">Devise::SessionsController</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-create">#create</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-new">#new</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">DeviseAuth::SessionsController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="create-method" class="method-detail ">
|
||||||
|
<a name="method-i-create"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">create</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="create-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/devise_auth/sessions_controller.rb, line 9</span>
|
||||||
|
9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-identifier">resource</span> = <span class="ruby-identifier">warden</span>.<span class="ruby-identifier">authenticate!</span>(<span class="ruby-value">:scope</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">resource_name</span>, <span class="ruby-value">:recall</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{controller_path}#new"</span>)
|
||||||
|
|
||||||
|
11: <span class="ruby-identifier">set_flash_message</span>(<span class="ruby-value">:notice</span>, <span class="ruby-value">:signed_in</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_navigational_format?</span>
|
||||||
|
|
||||||
|
12: <span class="ruby-identifier">sign_in</span>(<span class="ruby-identifier">resource_name</span>, <span class="ruby-identifier">resource</span>)
|
||||||
|
|
||||||
|
13: <span class="ruby-identifier">redirect_to</span> <span class="ruby-node">"/#!/home"</span>, <span class="ruby-value">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"devise/registrations/new"</span>
|
||||||
|
|
||||||
|
14: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="new-method" class="method-detail ">
|
||||||
|
<a name="method-i-new"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">new</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="new-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/devise_auth/sessions_controller.rb, line 3</span>
|
||||||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>
|
||||||
|
|
||||||
|
4: <span class="ruby-identifier">resource</span> = <span class="ruby-identifier">build_resource</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-identifier">clean_up_passwords</span>(<span class="ruby-identifier">resource</span>)
|
||||||
|
|
||||||
|
6: <span class="ruby-identifier">respond_with_navigational</span>(<span class="ruby-identifier">resource</span>, <span class="ruby-identifier">stub_options</span>(<span class="ruby-identifier">resource</span>)){ <span class="ruby-identifier">render</span> <span class="ruby-value">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"devise/sessions/new"</span> }
|
||||||
|
|
||||||
|
7: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,250 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: HomeController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/home_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/home_controller.rb">app/controllers/home_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="ApplicationController.html">ApplicationController</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-show">#show</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">HomeController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="show-method" class="method-detail ">
|
||||||
|
<a name="method-i-show"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">show</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="show-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/home_controller.rb, line 3</span>
|
||||||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
|
||||||
|
|
||||||
|
4: <span class="ruby-ivar">@charts</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Chart</span>.<span class="ruby-identifier">getTopArtists</span> <span class="ruby-value">10</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
6:
|
||||||
|
|
||||||
|
7: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"index"</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
@@ -0,0 +1,225 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: LastFM</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./lib/last_fm/album_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/album.rb">lib/last_fm/album.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="./lib/last_fm/artist_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/artist.rb">lib/last_fm/artist.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="./lib/last_fm/chart_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/chart.rb">lib/last_fm/chart.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="./lib/last_fm/request_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/request.rb">lib/last_fm/request.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="./lib/last_fm/track_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/track.rb">lib/last_fm/track.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="./lib/last_fm/validator_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/validator.rb">lib/last_fm/validator.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
<div id="namespace-list-section" class="section">
|
||||||
|
<h3 class="section-header">Namespace</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><span class="type">MODULE</span> <a href="LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">LastFM</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,335 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: LastFM::Album</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../lib/last_fm/album_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/album.rb">lib/last_fm/album.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="Request.html">LastFM::Request</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-getInfo">::getInfo</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopTags">::getTopTags</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-search">::search</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">LastFM::Album</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-nfo-method" class="method-detail ">
|
||||||
|
<a name="method-c-getInfo"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getInfo</span><span
|
||||||
|
class="method-args">(album, artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: album name, artist, (top)tags, tracks ( name, duration (in sec) )
|
||||||
|
mbid (album), release date, image urls ( different sizes )
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-nfo-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/album.rb, line 14</span>
|
||||||
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getInfo</span> <span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> [<span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>] }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-identifier">album_request</span> <span class="ruby-value str">"getInfo"</span>, <span class="ruby-value str">"album"</span>, <span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">info</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">info</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">info</span>, <span class="ruby-value str">"tracks"</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-identifier">info</span> = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>({ <span class="ruby-value">:tracks</span> =<span class="ruby-operator">></span> [] }) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">blank?</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">info</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> [<span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>] }, <span class="ruby-identifier">info</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
21: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
23: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-ags-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopTags"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopTags</span><span
|
||||||
|
class="method-args">(album, artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: tags ( name, tag´s last.fm-url ) ordered by popularity
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-ags-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/album.rb, line 26</span>
|
||||||
|
26: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopTags</span> <span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
27: <span class="ruby-identifier">album_request</span> <span class="ruby-value str">"getTopTags"</span>, <span class="ruby-value str">"toptags"</span>, <span class="ruby-identifier">album</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
28: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="search-method" class="method-detail ">
|
||||||
|
<a name="method-c-search"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">search</span><span
|
||||||
|
class="method-args">(query, limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="search-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/album.rb, line 5</span>
|
||||||
|
5: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">search</span> <span class="ruby-identifier">query</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-identifier">album_request</span> <span class="ruby-value str">"search"</span>, <span class="ruby-value str">"albummatches"</span>, <span class="ruby-identifier">query</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-identifier">page</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">result</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
7: <span class="ruby-identifier">result</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">result</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>({ <span class="ruby-value">:album</span> =<span class="ruby-operator">></span> [] }) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">blank?</span>
|
||||||
|
|
||||||
|
9: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">result</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,509 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: LastFM::Artist</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../lib/last_fm/artist_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/artist.rb">lib/last_fm/artist.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="Request.html">LastFM::Request</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-getImages">::getImages</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getInfo">::getInfo</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getSimilar">::getSimilar</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopAlbums">::getTopAlbums</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopTags">::getTopTags</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopTracks">::getTopTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-search">::search</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">LastFM::Artist</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-mages-method" class="method-detail ">
|
||||||
|
<a name="method-c-getImages"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getImages</span><span
|
||||||
|
class="method-args">(artist, limit = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-mages-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/artist.rb, line 63</span>
|
||||||
|
63: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getImages</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
64: <span class="ruby-identifier">artist_request</span> <span class="ruby-value str">"getImages"</span>, <span class="ruby-value str">"images"</span>, <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">images</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
65: <span class="ruby-identifier">images</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">images</span>, <span class="ruby-value str">"image"</span>
|
||||||
|
|
||||||
|
66: <span class="ruby-identifier">images</span> = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>({ <span class="ruby-value">:image</span> =<span class="ruby-operator">></span> [] }) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">images</span>.<span class="ruby-identifier">total</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"0"</span>
|
||||||
|
|
||||||
|
67: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">images</span>
|
||||||
|
|
||||||
|
68: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
69: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-nfo-method" class="method-detail ">
|
||||||
|
<a name="method-c-getInfo"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getInfo</span><span
|
||||||
|
class="method-args">(artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: artist name, tags, similar artists, artist bio (summary / long),
|
||||||
|
mbid, image urls ( different sizes )
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-nfo-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/artist.rb, line 14</span>
|
||||||
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getInfo</span> <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:info</span> }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-identifier">artist_request</span> <span class="ruby-value str">"getInfo"</span>, <span class="ruby-value str">"artist"</span>, <span class="ruby-identifier">artist</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">info</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">info</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">info</span>, <span class="ruby-value str">"tag"</span>, <span class="ruby-value str">"image"</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">info</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:info</span> }, <span class="ruby-identifier">info</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
21: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-imilar-method" class="method-detail ">
|
||||||
|
<a name="method-c-getSimilar"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getSimilar</span><span
|
||||||
|
class="method-args">(artist, limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: artists ( name, mbid, image urls ( different sizes ) )
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-imilar-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/artist.rb, line 25</span>
|
||||||
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getSimilar</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
26: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:similar</span> }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
27: <span class="ruby-identifier">artist_request</span> <span class="ruby-value str">"getSimilar"</span>, <span class="ruby-value str">"similarartists"</span>, <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">similar</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
28: <span class="ruby-identifier">similar</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">similar</span>, <span class="ruby-value str">"tag"</span>, <span class="ruby-value str">"image"</span>
|
||||||
|
|
||||||
|
29: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">similar</span>
|
||||||
|
|
||||||
|
30: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:similar</span> }, <span class="ruby-identifier">similar</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
31: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
32: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
33: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-lbums-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopAlbums"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopAlbums</span><span
|
||||||
|
class="method-args">(artist, limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: albums ( name, mbid, album url, image urls ( different sizes ) )
|
||||||
|
ordered by popularity
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-lbums-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/artist.rb, line 52</span>
|
||||||
|
52: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopAlbums</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
53: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:albums</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
54: <span class="ruby-identifier">artist_request</span> <span class="ruby-value str">"getTopAlbums"</span>, <span class="ruby-value str">"topalbums"</span>, <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-identifier">page</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">albums</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
55: <span class="ruby-identifier">albums</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">albums</span>, <span class="ruby-value str">"album"</span>
|
||||||
|
|
||||||
|
56: <span class="ruby-identifier">albums</span> = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>({ <span class="ruby-value">:album</span> =<span class="ruby-operator">></span> [] }) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">albums</span>.<span class="ruby-identifier">total</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"0"</span>
|
||||||
|
|
||||||
|
57: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">albums</span>
|
||||||
|
|
||||||
|
58: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:albums</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }, <span class="ruby-identifier">albums</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
59: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
60: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
61: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-ags-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopTags"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopTags</span><span
|
||||||
|
class="method-args">(artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: tags ( name, tag´s last.fm-url ) ordered by popularity
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-ags-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/artist.rb, line 36</span>
|
||||||
|
36: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopTags</span> <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
37: <span class="ruby-identifier">artist_request</span> <span class="ruby-value str">"getTopTags"</span>, <span class="ruby-value str">"toptags"</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
38: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-racks-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopTracks"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopTracks</span><span
|
||||||
|
class="method-args">(artist, limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: tracks ( name, image urls ( different sizes ) ) ordered by
|
||||||
|
popularity
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-racks-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/artist.rb, line 41</span>
|
||||||
|
41: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopTracks</span> <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
42: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:tracks</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
43: <span class="ruby-identifier">artist_request</span> <span class="ruby-value str">"getTopTracks"</span>, <span class="ruby-value str">"toptracks"</span>, <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-identifier">page</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tracks</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
44: <span class="ruby-identifier">tracks</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">tracks</span>, <span class="ruby-value str">"tag"</span>, <span class="ruby-value str">"image"</span>
|
||||||
|
|
||||||
|
45: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">tracks</span>
|
||||||
|
|
||||||
|
46: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:artist</span>, { <span class="ruby-value">:hashable</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:tracks</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }, <span class="ruby-identifier">tracks</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
47: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
48: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
49: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="search-method" class="method-detail ">
|
||||||
|
<a name="method-c-search"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">search</span><span
|
||||||
|
class="method-args">(query, limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
@@ -0,0 +1,295 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: LastFM::Chart</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../lib/last_fm/chart_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/chart.rb">lib/last_fm/chart.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="Request.html">LastFM::Request</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopArtists">::getTopArtists</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopTracks">::getTopTracks</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">LastFM::Chart</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-rtists-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopArtists"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopArtists</span><span
|
||||||
|
class="method-args">(limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-rtists-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/chart.rb, line 4</span>
|
||||||
|
4: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopArtists</span> <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:chart</span>, { <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:artists</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-identifier">chart_request</span> <span class="ruby-value str">"getTopArtists"</span>, <span class="ruby-value str">"artists"</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-identifier">page</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">artists</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
7: <span class="ruby-identifier">artists</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">artists</span>, <span class="ruby-value str">"image"</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">artists</span>
|
||||||
|
|
||||||
|
9: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:chart</span>, { <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:artists</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }, <span class="ruby-identifier">artists</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
12: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-racks-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopTracks"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopTracks</span><span
|
||||||
|
class="method-args">(limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-racks-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/chart.rb, line 14</span>
|
||||||
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopTracks</span> <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">look_up_key</span>(<span class="ruby-value">:chart</span>, { <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:tracks</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }) <span class="ruby-keyword kw">do</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-identifier">chart_request</span> <span class="ruby-value str">"getTopTracks"</span>, <span class="ruby-value str">"tracks"</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-identifier">page</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tracks</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">tracks</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">tracks</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">tracks</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-constant">RedisQueryable</span>.<span class="ruby-identifier">store</span> <span class="ruby-value">:chart</span>, { <span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value">:tracks</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> }, <span class="ruby-identifier">tracks</span>.<span class="ruby-identifier">to_json</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
21: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,716 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: LastFM::Request</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../lib/last_fm/request_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/request.rb">lib/last_fm/request.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">Object</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-album_request">::album_request</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-api_key%3D">::api_key=</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-artist_request">::artist_request</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-base_uri">::base_uri</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-chart_request">::chart_request</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-create_and_queue_request">::create_and_queue_request</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-current_class_name">::current_class_name</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-default_params">::default_params</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-handle_response">::handle_response</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-results">::results</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-run_queue%21">::run_queue!</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-track_request">::track_request</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-update_results">::update_results</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">LastFM::Request</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="album-request-method" class="method-detail ">
|
||||||
|
<a name="method-c-album_request"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">album_request</span><span
|
||||||
|
class="method-args">(method, node, q, artist = nil, limit = nil, page = nil, &block)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="album-request-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 42</span>
|
||||||
|
42: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">album_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">q</span>, <span class="ruby-identifier">artist</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>, &<span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
43: <span class="ruby-identifier">request_params</span> = <span class="ruby-identifier">default_params</span>.<span class="ruby-identifier">merge</span>( <span class="ruby-value">:method</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{current_class_name}.#{method}"</span>, <span class="ruby-value">:album</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">q</span>, <span class="ruby-value">:artist</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:limit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">limit</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> )
|
||||||
|
|
||||||
|
44: <span class="ruby-identifier">create_and_queue_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>, <span class="ruby-identifier">request_params</span>
|
||||||
|
|
||||||
|
45: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="api-key--method" class="method-detail ">
|
||||||
|
<a name="method-c-api_key%3D"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">api_key=</span><span
|
||||||
|
class="method-args">(key)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="api-key--source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 13</span>
|
||||||
|
13: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">api_key=</span>(<span class="ruby-identifier">key</span>)
|
||||||
|
|
||||||
|
14: <span class="ruby-identifier">@@api_key</span> = <span class="ruby-identifier">key</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-identifier">@@default_params</span>[<span class="ruby-value">:api_key</span>] = <span class="ruby-identifier">key</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="artist-request-method" class="method-detail ">
|
||||||
|
<a name="method-c-artist_request"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">artist_request</span><span
|
||||||
|
class="method-args">(method, node, q, limit = nil, page = nil, &block)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="artist-request-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 37</span>
|
||||||
|
37: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">artist_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">q</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>, &<span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
38: <span class="ruby-identifier">request_params</span> = <span class="ruby-identifier">default_params</span>.<span class="ruby-identifier">merge</span>( <span class="ruby-value">:method</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{current_class_name}.#{method}"</span>, <span class="ruby-value">:artist</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">q</span>, <span class="ruby-value">:limit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">limit</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> )
|
||||||
|
|
||||||
|
39: <span class="ruby-identifier">create_and_queue_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>, <span class="ruby-identifier">request_params</span>
|
||||||
|
|
||||||
|
40: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="base-uri-method" class="method-detail ">
|
||||||
|
<a name="method-c-base_uri"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">base_uri</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="base-uri-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 18</span>
|
||||||
|
18: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">base_uri</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-identifier">@@base_uri</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="chart-request-method" class="method-detail ">
|
||||||
|
<a name="method-c-chart_request"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">chart_request</span><span
|
||||||
|
class="method-args">(method, node, limit = nil, page = nil, &block)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="chart-request-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 52</span>
|
||||||
|
52: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">chart_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>, &<span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
53: <span class="ruby-identifier">request_params</span> = <span class="ruby-identifier">default_params</span>.<span class="ruby-identifier">merge</span>( <span class="ruby-value">:method</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{current_class_name}.#{method}"</span>, <span class="ruby-value">:limit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">limit</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> )
|
||||||
|
|
||||||
|
54: <span class="ruby-identifier">create_and_queue_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>, <span class="ruby-identifier">request_params</span>
|
||||||
|
|
||||||
|
55: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="default-params-method" class="method-detail ">
|
||||||
|
<a name="method-c-default_params"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">default_params</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="default-params-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 22</span>
|
||||||
|
22: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">default_params</span>
|
||||||
|
|
||||||
|
23: <span class="ruby-identifier">@@default_params</span>
|
||||||
|
|
||||||
|
24: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="results-method" class="method-detail ">
|
||||||
|
<a name="method-c-results"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">results</span><span
|
||||||
|
class="method-args">(keys = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="results-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 26</span>
|
||||||
|
26: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">results</span> <span class="ruby-identifier">keys</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
27: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">@@results</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">nil?</span>
|
||||||
|
|
||||||
|
28: <span class="ruby-identifier">@@results</span>[(<span class="ruby-node">"#{keys[0]}_#{keys[1]}"</span>.<span class="ruby-identifier">to_sym</span>)]
|
||||||
|
|
||||||
|
29: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="run-queue--method" class="method-detail ">
|
||||||
|
<a name="method-c-run_queue%21"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">run_queue!</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="run-queue--source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 31</span>
|
||||||
|
31: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
32: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"=> lastfm: Started request queue"</span>
|
||||||
|
|
||||||
|
33: <span class="ruby-identifier">@@hydra</span>.<span class="ruby-identifier">run</span>
|
||||||
|
|
||||||
|
34: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"=> lastfm: Queue finished"</span>
|
||||||
|
|
||||||
|
35: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="track-request-method" class="method-detail ">
|
||||||
|
<a name="method-c-track_request"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">track_request</span><span
|
||||||
|
class="method-args">(method, node, q, artist = nil, limit = nil, page = nil, &block)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="track-request-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 47</span>
|
||||||
|
47: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">track_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">q</span>, <span class="ruby-identifier">artist</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>, &<span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
48: <span class="ruby-identifier">request_params</span> = <span class="ruby-identifier">default_params</span>.<span class="ruby-identifier">merge</span>( <span class="ruby-value">:method</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{current_class_name}.#{method}"</span>, <span class="ruby-value">:track</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">q</span>, <span class="ruby-value">:artist</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">artist</span>, <span class="ruby-value">:limit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">limit</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">page</span> )
|
||||||
|
|
||||||
|
49: <span class="ruby-identifier">create_and_queue_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>, <span class="ruby-identifier">request_params</span>
|
||||||
|
|
||||||
|
50: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="protected-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Protected Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="current-class-name-method" class="method-detail ">
|
||||||
|
<a name="method-c-current_class_name"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">current_class_name</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="current-class-name-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 63</span>
|
||||||
|
63: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_class_name</span>
|
||||||
|
|
||||||
|
64: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'::'</span>).<span class="ruby-identifier">last</span>.<span class="ruby-identifier">downcase!</span>
|
||||||
|
|
||||||
|
65: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="update-results-method" class="method-detail ">
|
||||||
|
<a name="method-c-update_results"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">update_results</span><span
|
||||||
|
class="method-args">(keys, hash)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="update-results-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 59</span>
|
||||||
|
59: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">update_results</span> <span class="ruby-identifier">keys</span>, <span class="ruby-identifier">hash</span>
|
||||||
|
|
||||||
|
60: <span class="ruby-identifier">@@results</span>[(<span class="ruby-node">"#{keys[0]}_#{keys[1]}"</span>.<span class="ruby-identifier">to_sym</span>)].<span class="ruby-identifier">update</span> <span class="ruby-identifier">hash</span>
|
||||||
|
|
||||||
|
61: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="private-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Private Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="create-and-queue-request-method" class="method-detail ">
|
||||||
|
<a name="method-c-create_and_queue_request"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">create_and_queue_request</span><span
|
||||||
|
class="method-args">(method, node, block, request_params)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="create-and-queue-request-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 69</span>
|
||||||
|
69: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create_and_queue_request</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>, <span class="ruby-identifier">request_params</span>
|
||||||
|
|
||||||
|
70: <span class="ruby-identifier">request</span> = <span class="ruby-constant">Typhoeus</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">base_uri</span>, <span class="ruby-value">:params</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">request_params</span>) <span class="ruby-comment cmt"># :timeout => APP_CONFIG["request_timeout"],
|
||||||
|
</span>
|
||||||
|
71: <span class="ruby-identifier">handle_response</span> <span class="ruby-identifier">request</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
72:
|
||||||
|
|
||||||
|
73: <span class="ruby-identifier">puts</span> <span class="ruby-node">"=> lastfm: '#{current_class_name}.#{method}' request is queued"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@hydra</span>.<span class="ruby-identifier">queue</span> <span class="ruby-identifier">request</span>
|
||||||
|
|
||||||
|
74: <span class="ruby-identifier">@@results</span>[<span class="ruby-node">"#{current_class_name}_#{method}"</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>
|
||||||
|
|
||||||
|
75: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="handle-response-method" class="method-detail ">
|
||||||
|
<a name="method-c-handle_response"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">handle_response</span><span
|
||||||
|
class="method-args">(request, method, node, block)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="handle-response-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/request.rb, line 77</span>
|
||||||
|
77: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">handle_response</span> <span class="ruby-identifier">request</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">node</span>, <span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
78: <span class="ruby-identifier">request</span>.<span class="ruby-identifier">on_complete</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
79: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">success?</span>
|
||||||
|
|
||||||
|
80: <span class="ruby-identifier">puts</span> <span class="ruby-node">"=> lastfm: '#{current_class_name}.#{method}' (#{response.time}s)"</span>
|
||||||
|
|
||||||
|
81:
|
||||||
|
|
||||||
|
82: <span class="ruby-identifier">hash</span> = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>))
|
||||||
@@ -0,0 +1,367 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: LastFM::Track</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../lib/last_fm/track_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/track.rb">lib/last_fm/track.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="Request.html">LastFM::Request</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-getInfo">::getInfo</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getSimilar">::getSimilar</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-getTopTags">::getTopTags</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-search">::search</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">LastFM::Track</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-nfo-method" class="method-detail ">
|
||||||
|
<a name="method-c-getInfo"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getInfo</span><span
|
||||||
|
class="method-args">(track, artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: track name, id, (top)tags, artist, duration (in msec), album (
|
||||||
|
artist, title, image urls ( different sizes) ), mbid
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-nfo-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/track.rb, line 13</span>
|
||||||
|
13: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getInfo</span> <span class="ruby-identifier">track</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
14: <span class="ruby-identifier">track_request</span> <span class="ruby-value str">"getInfo"</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">track</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-imilar-method" class="method-detail ">
|
||||||
|
<a name="method-c-getSimilar"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getSimilar</span><span
|
||||||
|
class="method-args">(track, artist, limit = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: tracks ( name, artist (name, mbid), duration (in msec), image urls
|
||||||
|
(sometimes) )
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-imilar-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/track.rb, line 18</span>
|
||||||
|
18: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getSimilar</span> <span class="ruby-identifier">track</span>, <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-identifier">track_request</span> <span class="ruby-value str">"getSimilar"</span>, <span class="ruby-value str">"similartracks"</span>, <span class="ruby-identifier">track</span>, <span class="ruby-identifier">artist</span>, <span class="ruby-identifier">limit</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-op-ags-method" class="method-detail ">
|
||||||
|
<a name="method-c-getTopTags"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">getTopTags</span><span
|
||||||
|
class="method-args">(track, artist)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
return: tags ( name, tag´s last.fm-url ) ordered by popularity
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-op-ags-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/track.rb, line 23</span>
|
||||||
|
23: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">getTopTags</span> <span class="ruby-identifier">track</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
24: <span class="ruby-identifier">track_request</span> <span class="ruby-value str">"getTopTags"</span>, <span class="ruby-value str">"toptags"</span>, <span class="ruby-identifier">track</span>, <span class="ruby-identifier">artist</span>
|
||||||
|
|
||||||
|
25: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="search-method" class="method-detail ">
|
||||||
|
<a name="method-c-search"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">search</span><span
|
||||||
|
class="method-args">(query, limit = nil, page = nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="search-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/track.rb, line 4</span>
|
||||||
|
4: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">search</span> <span class="ruby-identifier">query</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-identifier">track_request</span> <span class="ruby-value str">"search"</span>, <span class="ruby-value str">"trackmatches"</span>, <span class="ruby-identifier">query</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-identifier">page</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">result</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-identifier">result</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">result</span>
|
||||||
|
|
||||||
|
7: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>({ <span class="ruby-value">:track</span> =<span class="ruby-operator">></span> [] }) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">blank?</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-identifier">update_results</span> [<span class="ruby-identifier">current_class_name</span>, <span class="ruby-identifier">__method__</span>], <span class="ruby-identifier">result</span>
|
||||||
|
|
||||||
|
9: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: LastFM::Validator</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../lib/last_fm/validator_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/last_fm/validator.rb">lib/last_fm/validator.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-validate_mash">::validate_mash</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">LastFM::Validator</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="validate-mash-method" class="method-detail ">
|
||||||
|
<a name="method-c-validate_mash"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">validate_mash</span><span
|
||||||
|
class="method-args">(mash, *args)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="validate-mash-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/last_fm/validator.rb, line 5</span>
|
||||||
|
5: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">mash</span>, *<span class="ruby-identifier">args</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-identifier">args</span>.<span class="ruby-identifier">flatten!</span>
|
||||||
|
|
||||||
|
7:
|
||||||
|
|
||||||
|
8: <span class="ruby-keyword kw">return</span> [] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mash</span>.<span class="ruby-identifier">blank?</span>
|
||||||
|
|
||||||
|
9:
|
||||||
|
|
||||||
|
10: <span class="ruby-identifier">mash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
||||||
|
|
||||||
|
12: <span class="ruby-identifier">mash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">wrap</span> <span class="ruby-identifier">value</span>
|
||||||
|
|
||||||
|
13: <span class="ruby-identifier">mash</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">mashie</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
14: <span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">mashie</span>, <span class="ruby-identifier">args</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>
|
||||||
|
|
||||||
|
17: <span class="ruby-identifier">mash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">validate_mash</span> <span class="ruby-identifier">mash</span>[<span class="ruby-identifier">key</span>], <span class="ruby-identifier">args</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-identifier">mash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-value str">""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">blank?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
|
||||||
|
|
||||||
|
20: <span class="ruby-identifier">mash</span>[<span class="ruby-identifier">key</span>] = [] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">blank?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
||||||
|
|
||||||
|
21: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
22:
|
||||||
|
|
||||||
|
23: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">mash</span>
|
||||||
|
|
||||||
|
24: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: Playlist</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/models/playlist_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/models/playlist.rb">app/models/playlist.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActiveRecord::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">Playlist</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: PlaylistsTracks</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/models/playlists_tracks_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/models/playlists_tracks.rb">app/models/playlists_tracks.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActiveRecord::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">PlaylistsTracks</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,459 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: RedisQueryable</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./lib/redis_queryable_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="lib/redis_queryable.rb">lib/redis_queryable.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-build_key">::build_key</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-exists_key%3F">::exists_key?</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-get">::get</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-look_up_key">::look_up_key</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-store">::store</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-switch_to_namespace">::switch_to_namespace</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">RedisQueryable</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
<div id="constants-list" class="section">
|
||||||
|
<h3 class="section-header">Constants</h3>
|
||||||
|
<dl>
|
||||||
|
|
||||||
|
<dt><a name="VALID_NAMESPACES">VALID_NAMESPACES</a></dt>
|
||||||
|
|
||||||
|
<dd class="description"></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt><a name="EXPIRATION">EXPIRATION</a></dt>
|
||||||
|
|
||||||
|
<dd class="description"></dd>
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="get-method" class="method-detail ">
|
||||||
|
<a name="method-c-get"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">get</span><span
|
||||||
|
class="method-args">(namespace, key_hash)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="get-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/redis_queryable.rb, line 18</span>
|
||||||
|
18: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span> <span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">key_hash</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">build_key</span> <span class="ruby-identifier">key_hash</span>.<span class="ruby-identifier">values</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-identifier">redis</span> = <span class="ruby-identifier">switch_to_namespace</span> <span class="ruby-identifier">namespace</span>
|
||||||
|
|
||||||
|
21: <span class="ruby-identifier">json</span> = <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">get</span> <span class="ruby-identifier">key</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-constant">Hashie</span><span class="ruby-operator">::</span><span class="ruby-constant">Mash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">json</span>))
|
||||||
|
|
||||||
|
23: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="look-up-key-method" class="method-detail ">
|
||||||
|
<a name="method-c-look_up_key"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">look_up_key</span><span
|
||||||
|
class="method-args">(namespace, key_hash, &block)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="look-up-key-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/redis_queryable.rb, line 25</span>
|
||||||
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">look_up_key</span> <span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">key_hash</span>, &<span class="ruby-identifier">block</span>
|
||||||
|
|
||||||
|
26: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exists_key?</span> <span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">key_hash</span>
|
||||||
|
|
||||||
|
27: <span class="ruby-identifier">get</span> <span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">key_hash</span>
|
||||||
|
|
||||||
|
28: <span class="ruby-keyword kw">else</span>
|
||||||
|
|
||||||
|
29: <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>
|
||||||
|
|
||||||
|
30: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
31: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="store-method" class="method-detail ">
|
||||||
|
<a name="method-c-store"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">store</span><span
|
||||||
|
class="method-args">(namespace, key_hash, value)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="store-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/redis_queryable.rb, line 10</span>
|
||||||
|
10: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">store</span> <span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">key_hash</span>, <span class="ruby-identifier">value</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">build_key</span> <span class="ruby-identifier">key_hash</span>.<span class="ruby-identifier">values</span>
|
||||||
|
|
||||||
|
12: <span class="ruby-identifier">redis</span> = <span class="ruby-identifier">switch_to_namespace</span> <span class="ruby-identifier">namespace</span>
|
||||||
|
|
||||||
|
13:
|
||||||
|
|
||||||
|
14: <span class="ruby-identifier">expires</span> = <span class="ruby-identifier">key_hash</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value">:type</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">EXPIRATION</span>[<span class="ruby-identifier">namespace</span>][<span class="ruby-identifier">key_hash</span>[<span class="ruby-value">:type</span>]] <span class="ruby-operator">:</span> <span class="ruby-constant">EXPIRATION</span>[<span class="ruby-identifier">namespace</span>]
|
||||||
|
|
||||||
|
15: <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">setex</span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">expires</span>.<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">days</span>, <span class="ruby-identifier">value</span>
|
||||||
|
|
||||||
|
16: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="private-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Private Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="build-key-method" class="method-detail ">
|
||||||
|
<a name="method-c-build_key"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">build_key</span><span
|
||||||
|
class="method-args">(key_array)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="build-key-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/redis_queryable.rb, line 42</span>
|
||||||
|
42: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">build_key</span> <span class="ruby-identifier">key_array</span>
|
||||||
|
|
||||||
|
43: <span class="ruby-identifier">key_array</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
44: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">SHA1</span>.<span class="ruby-identifier">hexdigest</span>(<span class="ruby-identifier">value</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_s</span>
|
||||||
|
|
||||||
|
45: <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">":"</span>)
|
||||||
|
|
||||||
|
46: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="exists-key--method" class="method-detail ">
|
||||||
|
<a name="method-c-exists_key%3F"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">exists_key?</span><span
|
||||||
|
class="method-args">(namespace, key_hash)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="exists-key--source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/redis_queryable.rb, line 36</span>
|
||||||
|
36: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">exists_key?</span> <span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">key_hash</span>
|
||||||
|
|
||||||
|
37: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">build_key</span> <span class="ruby-identifier">key_hash</span>.<span class="ruby-identifier">values</span>
|
||||||
|
|
||||||
|
38: <span class="ruby-identifier">redis</span> = <span class="ruby-identifier">switch_to_namespace</span> <span class="ruby-identifier">namespace</span>
|
||||||
|
|
||||||
|
39: <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">exists</span> <span class="ruby-identifier">key</span>
|
||||||
|
|
||||||
|
40: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="switch-to-namespace-method" class="method-detail ">
|
||||||
|
<a name="method-c-switch_to_namespace"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">switch_to_namespace</span><span
|
||||||
|
class="method-args">(namespace)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="switch-to-namespace-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File lib/redis_queryable.rb, line 48</span>
|
||||||
|
48: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">switch_to_namespace</span> <span class="ruby-identifier">namespace</span>
|
||||||
|
|
||||||
|
49: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">Namespace</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">namespace</span>, <span class="ruby-value">:redis</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">$redis</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">VALID_NAMESPACES</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">namespace</span>
|
||||||
|
|
||||||
|
50: <span class="ruby-identifier">$redis</span>
|
||||||
|
|
||||||
|
51: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,338 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: SearchController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/search_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/search_controller.rb">app/controllers/search_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="ApplicationController.html">ApplicationController</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-autocomplete">#autocomplete</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-more_artists">#more_artists</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-show">#show</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">SearchController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="autocomplete-method" class="method-detail ">
|
||||||
|
<a name="method-i-autocomplete"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">autocomplete</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="autocomplete-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/search_controller.rb, line 21</span>
|
||||||
|
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">autocomplete</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-identifier">q</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value">:q</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">lstrip</span>
|
||||||
|
|
||||||
|
23:
|
||||||
|
|
||||||
|
24: <span class="ruby-ivar">@artists</span> = <span class="ruby-identifier">$sevendigital_client</span>.<span class="ruby-identifier">artist</span>.<span class="ruby-identifier">search</span> <span class="ruby-identifier">q</span>, { <span class="ruby-value">:pagesize=</span><span class="ruby-operator">></span><span class="ruby-value">5</span> }
|
||||||
|
|
||||||
|
25:
|
||||||
|
|
||||||
|
26: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"autocomplete"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{ <span class="ruby-value">:artists=</span><span class="ruby-operator">></span><span class="ruby-ivar">@artists</span> }
|
||||||
|
|
||||||
|
27: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="more-artists-method" class="method-detail ">
|
||||||
|
<a name="method-i-more_artists"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">more_artists</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="more-artists-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/search_controller.rb, line 29</span>
|
||||||
|
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">more_artists</span>
|
||||||
|
|
||||||
|
30: <span class="ruby-ivar">@artists</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">search</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:q</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">lstrip</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:artists</span>], (<span class="ruby-identifier">params</span>[<span class="ruby-value">:size</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:artists</span>] <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
|
||||||
|
|
||||||
|
31: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
32:
|
||||||
|
|
||||||
|
33: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"more_artists"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{<span class="ruby-value">:artists=</span><span class="ruby-operator">></span><span class="ruby-ivar">@artists</span>}
|
||||||
|
|
||||||
|
34: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="show-method" class="method-detail ">
|
||||||
|
<a name="method-i-show"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">show</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="show-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/search_controller.rb, line 5</span>
|
||||||
|
5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-ivar">@q</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">lstrip</span>
|
||||||
|
|
||||||
|
7:
|
||||||
|
|
||||||
|
8: <span class="ruby-ivar">@artists</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">search</span> <span class="ruby-ivar">@q</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:artists</span>]
|
||||||
|
|
||||||
|
9: <span class="ruby-ivar">@tracks</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Track</span>.<span class="ruby-identifier">search</span> <span class="ruby-ivar">@q</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:tracks</span>]
|
||||||
|
|
||||||
|
10: <span class="ruby-ivar">@albums</span> = <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Album</span>.<span class="ruby-identifier">search</span> <span class="ruby-ivar">@q</span>, <span class="ruby-identifier">@@limit</span>[<span class="ruby-value">:albums</span>]
|
||||||
|
|
||||||
|
11:
|
||||||
|
|
||||||
|
12: <span class="ruby-constant">LastFM</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">run_queue!</span>
|
||||||
|
|
||||||
|
13:
|
||||||
|
|
||||||
|
14: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"show"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{
|
||||||
|
|
||||||
|
15: <span class="ruby-value">:artist=</span><span class="ruby-operator">></span><span class="ruby-ivar">@artist</span>,
|
||||||
|
|
||||||
|
16: <span class="ruby-value">:tracks=</span><span class="ruby-operator">></span><span class="ruby-ivar">@tracks</span>,
|
||||||
|
|
||||||
|
17: <span class="ruby-value">:albums=</span><span class="ruby-operator">></span><span class="ruby-ivar">@albums</span>
|
||||||
|
|
||||||
|
18: }
|
||||||
|
|
||||||
|
19: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: Track</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/models/track_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/models/track.rb">app/models/track.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActiveRecord::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">Track</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,286 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: TracksController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/tracks_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/tracks_controller.rb">app/controllers/tracks_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="ApplicationController.html">ApplicationController</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-index">#index</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-search_video">#search_video</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">TracksController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="index-method" class="method-detail ">
|
||||||
|
<a name="method-i-index"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">index</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="index-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/tracks_controller.rb, line 2</span>
|
||||||
|
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
||||||
|
|
||||||
|
3: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="search-video-method" class="method-detail ">
|
||||||
|
<a name="method-i-search_video"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">search_video</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="search-video-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/tracks_controller.rb, line 5</span>
|
||||||
|
5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">search_video</span>
|
||||||
|
|
||||||
|
6:
|
||||||
|
|
||||||
|
7: <span class="ruby-ivar">@video</span> = <span class="ruby-ivar">@youtube_client</span>.<span class="ruby-identifier">videos_by</span>(<span class="ruby-value">:query</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{CGI.unescape(params[:artist])} #{CGI.unescape(params[:track])} official"</span>, <span class="ruby-value">:page</span> =<span class="ruby-operator">></span> <span class="ruby-value">1</span>, <span class="ruby-value">:per_page</span> =<span class="ruby-operator">></span> <span class="ruby-value">1</span>, <span class="ruby-value">:order_by</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"relevance"</span>)
|
||||||
|
|
||||||
|
8: <span class="ruby-ivar">@id</span> = <span class="ruby-ivar">@video</span>.<span class="ruby-identifier">videos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">unique_id</span>
|
||||||
|
|
||||||
|
9:
|
||||||
|
|
||||||
|
10: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial=</span><span class="ruby-operator">></span><span class="ruby-value str">"video_id"</span>, <span class="ruby-value">:locals=</span><span class="ruby-operator">></span>{<span class="ruby-value">:id=</span><span class="ruby-operator">></span><span class="ruby-ivar">@id</span>}
|
||||||
|
|
||||||
|
11: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
@@ -0,0 +1,333 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: User</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/models/user_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/models/user.rb">app/models/user.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActiveRecord::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-c-find_for_facebook_oauth">::find_for_facebook_oauth</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-find_for_open_id">::find_for_open_id</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-c-new_with_session">::new_with_session</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">User</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-class-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Class Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="find-for-facebook-oauth-method" class="method-detail ">
|
||||||
|
<a name="method-c-find_for_facebook_oauth"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">find_for_facebook_oauth</span><span
|
||||||
|
class="method-args">(access_token, signed_in_resource=nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="find-for-facebook-oauth-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/models/user.rb, line 21</span>
|
||||||
|
21: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">find_for_facebook_oauth</span>(<span class="ruby-identifier">access_token</span>, <span class="ruby-identifier">signed_in_resource</span>=<span class="ruby-keyword kw">nil</span>)
|
||||||
|
|
||||||
|
22: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">access_token</span>[<span class="ruby-value str">'extra'</span>][<span class="ruby-value str">'user_hash'</span>]
|
||||||
|
|
||||||
|
23: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find_by_email</span>(<span class="ruby-identifier">data</span>[<span class="ruby-value str">"email"</span>])
|
||||||
|
|
||||||
|
24: <span class="ruby-identifier">user</span>
|
||||||
|
|
||||||
|
25: <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># Create a user with a stub password.
|
||||||
|
</span>
|
||||||
|
26: <span class="ruby-constant">User</span>.<span class="ruby-identifier">create!</span>(<span class="ruby-value">:email</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-value str">"email"</span>], <span class="ruby-value">:password</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Devise</span>.<span class="ruby-identifier">friendly_token</span>[<span class="ruby-value">0</span>,<span class="ruby-value">20</span>])
|
||||||
|
|
||||||
|
27: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
28: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="find-for-open-id-method" class="method-detail ">
|
||||||
|
<a name="method-c-find_for_open_id"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">find_for_open_id</span><span
|
||||||
|
class="method-args">(access_token, signed_in_resource=nil)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="find-for-open-id-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/models/user.rb, line 30</span>
|
||||||
|
30: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">find_for_open_id</span>(<span class="ruby-identifier">access_token</span>, <span class="ruby-identifier">signed_in_resource</span>=<span class="ruby-keyword kw">nil</span>)
|
||||||
|
|
||||||
|
31: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">access_token</span>[<span class="ruby-value str">'user_info'</span>]
|
||||||
|
|
||||||
|
32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find_by_email</span>(<span class="ruby-identifier">data</span>[<span class="ruby-value str">"email"</span>])
|
||||||
|
|
||||||
|
33: <span class="ruby-identifier">user</span>
|
||||||
|
|
||||||
|
34: <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># Create a user with a stub password.
|
||||||
|
</span>
|
||||||
|
35: <span class="ruby-constant">User</span>.<span class="ruby-identifier">create!</span>(<span class="ruby-value">:email</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-value str">"email"</span>], <span class="ruby-value">:password</span> =<span class="ruby-operator">></span> <span class="ruby-constant">Devise</span>.<span class="ruby-identifier">friendly_token</span>[<span class="ruby-value">0</span>,<span class="ruby-value">20</span>])
|
||||||
|
|
||||||
|
36: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
37: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="new-with-session-method" class="method-detail ">
|
||||||
|
<a name="method-c-new_with_session"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">new_with_session</span><span
|
||||||
|
class="method-args">(params, session)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="new-with-session-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/models/user.rb, line 13</span>
|
||||||
|
13: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_with_session</span>(<span class="ruby-identifier">params</span>, <span class="ruby-identifier">session</span>)
|
||||||
|
|
||||||
|
14: <span class="ruby-keyword kw">super</span>.<span class="ruby-identifier">tap</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">user</span><span class="ruby-operator">|</span>
|
||||||
|
|
||||||
|
15: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span> = <span class="ruby-identifier">session</span>[<span class="ruby-value str">"devise.facebook_data"</span>] <span class="ruby-operator">&&</span> <span class="ruby-identifier">session</span>[<span class="ruby-value str">"devise.facebook_data"</span>][<span class="ruby-value str">"extra"</span>][<span class="ruby-value str">"user_hash"</span>]
|
||||||
|
|
||||||
|
16: <span class="ruby-identifier">user</span>.<span class="ruby-identifier">email</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">"email"</span>]
|
||||||
|
|
||||||
|
17: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
18: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
19: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,197 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: Users</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
<div id="namespace-list-section" class="section">
|
||||||
|
<h3 class="section-header">Namespace</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><span class="type">CLASS</span> <a href="Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">Users</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,336 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: Users::OmniauthCallbacksController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="../app/controllers/users/omniauth_callbacks_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/users/omniauth_callbacks_controller.rb">app/controllers/users/omniauth_callbacks_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">Devise::OmniauthCallbacksController</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-facebook">#facebook</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-open_id">#open_id</a></li>
|
||||||
|
|
||||||
|
<li><a href="#method-i-passthru">#passthru</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">Users::OmniauthCallbacksController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="facebook-method" class="method-detail ">
|
||||||
|
<a name="method-i-facebook"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">facebook</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="facebook-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/users/omniauth_callbacks_controller.rb, line 3</span>
|
||||||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">facebook</span>
|
||||||
|
|
||||||
|
4: <span class="ruby-comment cmt"># You need to implement the method below in your model
|
||||||
|
</span>
|
||||||
|
5: <span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find_for_facebook_oauth</span>(<span class="ruby-identifier">env</span>[<span class="ruby-value str">"omniauth.auth"</span>], <span class="ruby-identifier">current_user</span>)
|
||||||
|
|
||||||
|
6:
|
||||||
|
|
||||||
|
7: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">persisted?</span>
|
||||||
|
|
||||||
|
8: <span class="ruby-identifier">flash</span>[<span class="ruby-value">:notice</span>] = <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span> <span class="ruby-value str">"devise.omniauth_callbacks.success"</span>, <span class="ruby-value">:kind</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"Facebook"</span>
|
||||||
|
|
||||||
|
9: <span class="ruby-identifier">sign_in_and_redirect</span> <span class="ruby-ivar">@user</span>, <span class="ruby-value">:event</span> =<span class="ruby-operator">></span> <span class="ruby-value">:authentication</span>
|
||||||
|
|
||||||
|
10: <span class="ruby-keyword kw">else</span>
|
||||||
|
|
||||||
|
11: <span class="ruby-identifier">session</span>[<span class="ruby-value str">"devise.facebook_data"</span>] = <span class="ruby-identifier">env</span>[<span class="ruby-value str">"omniauth.auth"</span>]
|
||||||
|
|
||||||
|
12: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">new_user_registration_url</span>
|
||||||
|
|
||||||
|
13: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
14: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="open-id-method" class="method-detail ">
|
||||||
|
<a name="method-i-open_id"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">open_id</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="open-id-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/users/omniauth_callbacks_controller.rb, line 16</span>
|
||||||
|
16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open_id</span>
|
||||||
|
|
||||||
|
17: <span class="ruby-comment cmt"># You need to implement the method below in your model
|
||||||
|
</span>
|
||||||
|
18: <span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find_for_open_id</span>(<span class="ruby-identifier">env</span>[<span class="ruby-value str">"omniauth.auth"</span>], <span class="ruby-identifier">current_user</span>)
|
||||||
|
|
||||||
|
19: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">persisted?</span>
|
||||||
|
|
||||||
|
20: <span class="ruby-identifier">flash</span>[<span class="ruby-value">:notice</span>] = <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span> <span class="ruby-value str">"devise.omniauth_callbacks.success"</span>, <span class="ruby-value">:kind</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"Google"</span>
|
||||||
|
|
||||||
|
21: <span class="ruby-identifier">sign_in_and_redirect</span> <span class="ruby-ivar">@user</span>, <span class="ruby-value">:event</span> =<span class="ruby-operator">></span> <span class="ruby-value">:authentication</span>
|
||||||
|
|
||||||
|
22: <span class="ruby-keyword kw">else</span>
|
||||||
|
|
||||||
|
23: <span class="ruby-identifier">session</span>[<span class="ruby-value str">"devise.open:id_data"</span>] = <span class="ruby-identifier">env</span>[<span class="ruby-value str">"openid.ext1"</span>]
|
||||||
|
|
||||||
|
24: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">new_user_registration_url</span>
|
||||||
|
|
||||||
|
25: <span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
26: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="passthru-method" class="method-detail ">
|
||||||
|
<a name="method-i-passthru"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">passthru</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="passthru-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/users/omniauth_callbacks_controller.rb, line 28</span>
|
||||||
|
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">passthru</span>
|
||||||
|
|
||||||
|
29: <span class="ruby-identifier">render</span> <span class="ruby-value">:file</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{Rails.root}/public/404.html"</span>, <span class="ruby-value">:status</span> =<span class="ruby-operator">></span> <span class="ruby-value">404</span>, <span class="ruby-value">:layout</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>
|
||||||
|
|
||||||
|
30: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,249 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: UsersController</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/controllers/users_controller_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/controllers/users_controller.rb">app/controllers/users_controller.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link"><a href="ApplicationController.html">ApplicationController</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-show">#show</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">UsersController</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="show-method" class="method-detail ">
|
||||||
|
<a name="method-i-show"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">show</span><span
|
||||||
|
class="method-args">()</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="show-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/controllers/users_controller.rb, line 2</span>
|
||||||
|
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
|
||||||
|
|
||||||
|
3: <span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>]
|
||||||
|
|
||||||
|
4: <span class="ruby-identifier">puts</span> <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">inspect</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-identifier">render</span> <span class="ruby-value">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"show"</span>, <span class="ruby-value">:locals</span> =<span class="ruby-operator">></span> { <span class="ruby-value">:user</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@user</span> }
|
||||||
|
|
||||||
|
6: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,241 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Module: UsersHelper</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="module">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/helpers/users_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/helpers/users_helper.rb">app/helpers/users_helper.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
<div id="method-list-section" class="section">
|
||||||
|
<h3 class="section-header">Methods</h3>
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="#method-i-validate_avatar_url">#validate_avatar_url</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="module">UsersHelper</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
<div id="public-instance-method-details" class="method-section section">
|
||||||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="validate-avatar-url-method" class="method-detail ">
|
||||||
|
<a name="method-i-validate_avatar_url"></a>
|
||||||
|
|
||||||
|
<div class="method-heading">
|
||||||
|
|
||||||
|
<span class="method-name">validate_avatar_url</span><span
|
||||||
|
class="method-args">(url)</span>
|
||||||
|
<span class="method-click-advice">click to toggle source</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method-description">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="method-source-code"
|
||||||
|
id="validate-avatar-url-source">
|
||||||
|
<pre>
|
||||||
|
<span class="ruby-comment cmt"># File app/helpers/users_helper.rb, line 3</span>
|
||||||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_avatar_url</span> <span class="ruby-identifier">url</span>
|
||||||
|
|
||||||
|
4: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">url</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">present?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exists?</span> <span class="ruby-identifier">url</span>
|
||||||
|
|
||||||
|
5: <span class="ruby-value str">"examples/user-big.jpg"</span>
|
||||||
|
|
||||||
|
6: <span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Class: YoutubeVideoRating</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
<script src="./js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="./js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="class">
|
||||||
|
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="./index.html">Home</a>
|
||||||
|
<a href="./index.html#classes">Classes</a>
|
||||||
|
<a href="./index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="file-metadata">
|
||||||
|
<div id="file-list-section" class="section">
|
||||||
|
<h3 class="section-header">In Files</h3>
|
||||||
|
<div class="section-body">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="./app/models/youtube_video_rating_rb.html?TB_iframe=true&height=550&width=785"
|
||||||
|
class="thickbox" title="app/models/youtube_video_rating.rb">app/models/youtube_video_rating.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="class-metadata">
|
||||||
|
|
||||||
|
<!-- Parent Class -->
|
||||||
|
|
||||||
|
<div id="parent-class-section" class="section">
|
||||||
|
<h3 class="section-header">Parent</h3>
|
||||||
|
|
||||||
|
<p class="link">ActiveRecord::Base</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Namespace Contents -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Method Quickref -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Included Modules -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="./images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="./LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="./SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="./TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="./UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<h1 class="class">YoutubeVideoRating</h1>
|
||||||
|
|
||||||
|
<div id="description">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Constants -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Attributes -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Methods -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||||||
|
|
||||||
|
<p>Disabled; run with --debug to generate this.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: application_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-12 16:26:41 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: artists_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-12 16:22:34 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>uri</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: charts_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-12 01:46:19 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: registrations_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: sessions_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: home_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 00:41:53 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: search_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 01:00:15 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: tracks_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-09 06:14:15 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: omniauth_callbacks_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-06 14:10:23 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: users_controller.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: application_helper.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-08 22:33:20 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
<p>
|
||||||
|
encoding: UTF-8
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: users_helper.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: artist.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-06 14:10:23 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: playlist.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: playlists_tracks.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-06 14:10:23 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: track.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-08 03:11:10 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: user.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: youtube_video_rating.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-06 14:10:23 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
Mon, 13 Jun 2011 14:50:55 +0200
|
||||||
|
doc/README_FOR_APP Mon, 02 May 2011 20:00:11 +0200
|
||||||
|
app/controllers/application_controller.rb Sun, 12 Jun 2011 16:26:41 +0200
|
||||||
|
app/controllers/artists_controller.rb Sun, 12 Jun 2011 16:22:34 +0200
|
||||||
|
app/controllers/charts_controller.rb Sun, 12 Jun 2011 01:46:19 +0200
|
||||||
|
app/controllers/devise_auth/registrations_controller.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
app/controllers/devise_auth/sessions_controller.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
app/controllers/home_controller.rb Fri, 10 Jun 2011 00:41:53 +0200
|
||||||
|
app/controllers/search_controller.rb Fri, 10 Jun 2011 01:00:15 +0200
|
||||||
|
app/controllers/tracks_controller.rb Thu, 09 Jun 2011 06:14:15 +0200
|
||||||
|
app/controllers/users/omniauth_callbacks_controller.rb Mon, 06 Jun 2011 14:10:23 +0200
|
||||||
|
app/controllers/users_controller.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
app/helpers/application_helper.rb Wed, 08 Jun 2011 22:33:20 +0200
|
||||||
|
app/helpers/users_helper.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
app/models/artist.rb Mon, 06 Jun 2011 14:10:23 +0200
|
||||||
|
app/models/playlist.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
app/models/playlists_tracks.rb Mon, 06 Jun 2011 14:10:23 +0200
|
||||||
|
app/models/track.rb Wed, 08 Jun 2011 03:11:10 +0200
|
||||||
|
app/models/user.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
app/models/youtube_video_rating.rb Mon, 06 Jun 2011 14:10:23 +0200
|
||||||
|
lib/last_fm/album.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
lib/last_fm/artist.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
lib/last_fm/chart.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
|
lib/last_fm/request.rb Mon, 13 Jun 2011 14:46:39 +0200
|
||||||
|
lib/last_fm/track.rb Fri, 10 Jun 2011 00:41:53 +0200
|
||||||
|
lib/last_fm/validator.rb Wed, 08 Jun 2011 03:11:10 +0200
|
||||||
|
lib/redis_queryable.rb Fri, 10 Jun 2011 02:24:59 +0200
|
||||||
@@ -0,0 +1,144 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: README_FOR_APP [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file">
|
||||||
|
<div id="metadata">
|
||||||
|
<div id="home-metadata">
|
||||||
|
<div id="home-section" class="section">
|
||||||
|
<h3 class="section-header">
|
||||||
|
<a href="../index.html">Home</a>
|
||||||
|
<a href="../index.html#classes">Classes</a>
|
||||||
|
<a href="../index.html#methods">Methods</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-metadata">
|
||||||
|
|
||||||
|
|
||||||
|
<div id="fileindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Files</h3>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="classindex-section" class="section project-section">
|
||||||
|
<h3 class="section-header">Class Index
|
||||||
|
<span class="search-toggle"><img src="../images/find.png"
|
||||||
|
height="16" width="16" alt="[+]"
|
||||||
|
title="show/hide quicksearch" /></span></h3>
|
||||||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Quicksearch</legend>
|
||||||
|
<input type="text" name="quicksearch" value=""
|
||||||
|
class="quicksearch-field" />
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<ul class="link-list">
|
||||||
|
|
||||||
|
<li><a href="../LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li><a href="../PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li><a href="../RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="../SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="../TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../User.html">User</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="../UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="../YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
<p>
|
||||||
|
Use this README file to introduce your application and point to useful
|
||||||
|
places in the API for learning more.
|
||||||
|
Run “rake doc:app” to
|
||||||
|
generate API documentation for your models, controllers, helpers, and
|
||||||
|
libraries.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
After Width: | Height: | Size: 452 B |
|
After Width: | Height: | Size: 764 B |
|
After Width: | Height: | Size: 774 B |
|
After Width: | Height: | Size: 211 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 209 B |
|
After Width: | Height: | Size: 626 B |
|
After Width: | Height: | Size: 659 B |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 853 B |
|
After Width: | Height: | Size: 621 B |
|
After Width: | Height: | Size: 342 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 591 B |
|
After Width: | Height: | Size: 592 B |
|
After Width: | Height: | Size: 613 B |
|
After Width: | Height: | Size: 610 B |
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 692 B |
@@ -0,0 +1,244 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>Rails Application Documentation</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="indexpage">
|
||||||
|
|
||||||
|
|
||||||
|
<h1>Rails Application Documentation</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<p>This is the API documentation for 'Rails Application Documentation'.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2>Files</h2>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="file"><a href="doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="classes">Classes/Modules</h2>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="module"><a href="LastFM.html">LastFM</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="LastFM/Album.html">LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="LastFM/Artist.html">LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="LastFM/Chart.html">LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="LastFM/Request.html">LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="LastFM/Track.html">LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li class="module"><a href="LastFM/Validator.html">LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li class="module"><a href="DeviseAuth.html">DeviseAuth</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li class="module"><a href="Users.html">Users</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="ApplicationController.html">ApplicationController</a></li>
|
||||||
|
|
||||||
|
<li class="module"><a href="ApplicationHelper.html">ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="Artist.html">Artist</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="ArtistsController.html">ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="ChartsController.html">ChartsController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="HomeController.html">HomeController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="Playlist.html">Playlist</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="PlaylistsTracks.html">PlaylistsTracks</a></li>
|
||||||
|
|
||||||
|
<li class="module"><a href="RedisQueryable.html">RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="SearchController.html">SearchController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="Track.html">Track</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="TracksController.html">TracksController</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="User.html">User</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="UsersController.html">UsersController</a></li>
|
||||||
|
|
||||||
|
<li class="module"><a href="UsersHelper.html">UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li class="class"><a href="YoutubeVideoRating.html">YoutubeVideoRating</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="methods">Methods</h2>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-album_request">::album_request — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-api_key%3D">::api_key= — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-artist_request">::artist_request — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-base_uri">::base_uri — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="RedisQueryable.html#method-c-build_key">::build_key — RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-chart_request">::chart_request — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-create_and_queue_request">::create_and_queue_request — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-current_class_name">::current_class_name — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-default_params">::default_params — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="RedisQueryable.html#method-c-exists_key%3F">::exists_key? — RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="User.html#method-c-find_for_facebook_oauth">::find_for_facebook_oauth — User</a></li>
|
||||||
|
|
||||||
|
<li><a href="User.html#method-c-find_for_open_id">::find_for_open_id — User</a></li>
|
||||||
|
|
||||||
|
<li><a href="RedisQueryable.html#method-c-get">::get — RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-getImages">::getImages — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Album.html#method-c-getInfo">::getInfo — LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-getInfo">::getInfo — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Track.html#method-c-getInfo">::getInfo — LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-getSimilar">::getSimilar — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Track.html#method-c-getSimilar">::getSimilar — LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-getTopAlbums">::getTopAlbums — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Chart.html#method-c-getTopArtists">::getTopArtists — LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Album.html#method-c-getTopTags">::getTopTags — LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-getTopTags">::getTopTags — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Track.html#method-c-getTopTags">::getTopTags — LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Chart.html#method-c-getTopTracks">::getTopTracks — LastFM::Chart</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-getTopTracks">::getTopTracks — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-handle_response">::handle_response — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="RedisQueryable.html#method-c-look_up_key">::look_up_key — RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="User.html#method-c-new_with_session">::new_with_session — User</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-results">::results — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-run_queue%21">::run_queue! — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Track.html#method-c-search">::search — LastFM::Track</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Artist.html#method-c-search">::search — LastFM::Artist</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Album.html#method-c-search">::search — LastFM::Album</a></li>
|
||||||
|
|
||||||
|
<li><a href="RedisQueryable.html#method-c-store">::store — RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="RedisQueryable.html#method-c-switch_to_namespace">::switch_to_namespace — RedisQueryable</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-track_request">::track_request — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Request.html#method-c-update_results">::update_results — LastFM::Request</a></li>
|
||||||
|
|
||||||
|
<li><a href="LastFM/Validator.html#method-c-validate_mash">::validate_mash — LastFM::Validator</a></li>
|
||||||
|
|
||||||
|
<li><a href="ArtistsController.html#method-i-album_info">#album_info — ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="SearchController.html#method-i-autocomplete">#autocomplete — SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ApplicationHelper.html#method-i-camelCaseString">#camelCaseString — ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="DeviseAuth/RegistrationsController.html#method-i-create">#create — DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="DeviseAuth/SessionsController.html#method-i-create">#create — DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="DeviseAuth/RegistrationsController.html#method-i-edit">#edit — DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="Users/OmniauthCallbacksController.html#method-i-facebook">#facebook — Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ApplicationHelper.html#method-i-get_album_info">#get_album_info — ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="TracksController.html#method-i-index">#index — TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ChartsController.html#method-i-index">#index — ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ArtistsController.html#method-i-index">#index — ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ChartsController.html#method-i-more">#more — ChartsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ArtistsController.html#method-i-more_albums">#more_albums — ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="SearchController.html#method-i-more_artists">#more_artists — SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ArtistsController.html#method-i-more_tracks">#more_tracks — ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="DeviseAuth/SessionsController.html#method-i-new">#new — DeviseAuth::SessionsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="DeviseAuth/RegistrationsController.html#method-i-new">#new — DeviseAuth::RegistrationsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="Users/OmniauthCallbacksController.html#method-i-open_id">#open_id — Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="Users/OmniauthCallbacksController.html#method-i-passthru">#passthru — Users::OmniauthCallbacksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ArtistsController.html#method-i-prepare">#prepare — ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="TracksController.html#method-i-search_video">#search_video — TracksController</a></li>
|
||||||
|
|
||||||
|
<li><a href="UsersController.html#method-i-show">#show — UsersController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ArtistsController.html#method-i-show">#show — ArtistsController</a></li>
|
||||||
|
|
||||||
|
<li><a href="SearchController.html#method-i-show">#show — SearchController</a></li>
|
||||||
|
|
||||||
|
<li><a href="HomeController.html#method-i-show">#show — HomeController</a></li>
|
||||||
|
|
||||||
|
<li><a href="ApplicationHelper.html#method-i-trimString">#trimString — ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="UsersHelper.html#method-i-validate_avatar_url">#validate_avatar_url — UsersHelper</a></li>
|
||||||
|
|
||||||
|
<li><a href="ApplicationHelper.html#method-i-validate_img_url">#validate_img_url — ApplicationHelper</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div id="validator-badges">
|
||||||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Darkfish Page Functions
|
||||||
|
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
|
||||||
|
*
|
||||||
|
* Author: Michael Granger <mgranger@laika.com>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Provide console simulation for firebug-less environments */
|
||||||
|
if (!("console" in window) || !("firebug" in console)) {
|
||||||
|
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
|
||||||
|
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
|
||||||
|
|
||||||
|
window.console = {};
|
||||||
|
for (var i = 0; i < names.length; ++i)
|
||||||
|
window.console[names[i]] = function() {};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unwrap the first element that matches the given @expr@ from the targets and return them.
|
||||||
|
*/
|
||||||
|
$.fn.unwrap = function( expr ) {
|
||||||
|
return this.each( function() {
|
||||||
|
$(this).parents( expr ).eq( 0 ).after( this ).remove();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function showSource( e ) {
|
||||||
|
var target = e.target;
|
||||||
|
var codeSections = $(target).
|
||||||
|
parents('.method-detail').
|
||||||
|
find('.method-source-code');
|
||||||
|
|
||||||
|
$(target).
|
||||||
|
parents('.method-detail').
|
||||||
|
find('.method-source-code').
|
||||||
|
slideToggle();
|
||||||
|
};
|
||||||
|
|
||||||
|
function hookSourceViews() {
|
||||||
|
$('.method-description,.method-heading').click( showSource );
|
||||||
|
};
|
||||||
|
|
||||||
|
function toggleDebuggingSection() {
|
||||||
|
$('.debugging-section').slideToggle();
|
||||||
|
};
|
||||||
|
|
||||||
|
function hookDebuggingToggle() {
|
||||||
|
$('#debugging-toggle img').click( toggleDebuggingSection );
|
||||||
|
};
|
||||||
|
|
||||||
|
function hookQuickSearch() {
|
||||||
|
$('.quicksearch-field').each( function() {
|
||||||
|
var searchElems = $(this).parents('.section').find( 'li' );
|
||||||
|
var toggle = $(this).parents('.section').find('h3 .search-toggle');
|
||||||
|
// console.debug( "Toggle is: %o", toggle );
|
||||||
|
var qsbox = $(this).parents('form').get( 0 );
|
||||||
|
|
||||||
|
$(this).quicksearch( this, searchElems, {
|
||||||
|
noSearchResultsIndicator: 'no-class-search-results',
|
||||||
|
focusOnLoad: false
|
||||||
|
});
|
||||||
|
$(toggle).click( function() {
|
||||||
|
// console.debug( "Toggling qsbox: %o", qsbox );
|
||||||
|
$(qsbox).toggle();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function highlightTarget( anchor ) {
|
||||||
|
console.debug( "Highlighting target '%s'.", anchor );
|
||||||
|
|
||||||
|
$("a[name=" + anchor + "]").each( function() {
|
||||||
|
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
||||||
|
console.debug( "Wrapping the target-section" );
|
||||||
|
$('div.method-detail').unwrap( 'div.target-section' );
|
||||||
|
$(this).parent().wrap( '<div class="target-section"></div>' );
|
||||||
|
} else {
|
||||||
|
console.debug( "Already wrapped." );
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function highlightLocationTarget() {
|
||||||
|
console.debug( "Location hash: %s", window.location.hash );
|
||||||
|
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
||||||
|
|
||||||
|
var anchor = window.location.hash.substring(1);
|
||||||
|
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
||||||
|
|
||||||
|
highlightTarget( anchor );
|
||||||
|
};
|
||||||
|
|
||||||
|
function highlightClickTarget( event ) {
|
||||||
|
console.debug( "Highlighting click target for event %o", event.target );
|
||||||
|
try {
|
||||||
|
var anchor = $(event.target).attr( 'href' ).substring(1);
|
||||||
|
console.debug( "Found target anchor: %s", anchor );
|
||||||
|
highlightTarget( anchor );
|
||||||
|
} catch ( err ) {
|
||||||
|
console.error( "Exception while highlighting: %o", err );
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready( function() {
|
||||||
|
hookSourceViews();
|
||||||
|
hookDebuggingToggle();
|
||||||
|
hookQuickSearch();
|
||||||
|
highlightLocationTarget();
|
||||||
|
|
||||||
|
$('ul.link-list a').bind( "click", highlightClickTarget );
|
||||||
|
});
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* JQuery QuickSearch - Hook up a form field to hide non-matching elements.
|
||||||
|
* $Id: quicksearch.js 53 2009-01-07 02:52:03Z deveiant $
|
||||||
|
*
|
||||||
|
* Author: Michael Granger <mgranger@laika.com>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
jQuery.fn.quicksearch = function( target, searchElems, options ) {
|
||||||
|
// console.debug( "Quicksearch fn" );
|
||||||
|
|
||||||
|
var settings = {
|
||||||
|
delay: 250,
|
||||||
|
clearButton: false,
|
||||||
|
highlightMatches: false,
|
||||||
|
focusOnLoad: false,
|
||||||
|
noSearchResultsIndicator: null
|
||||||
|
};
|
||||||
|
if ( options ) $.extend( settings, options );
|
||||||
|
|
||||||
|
return jQuery(this).each( function() {
|
||||||
|
// console.debug( "Creating a new quicksearch on %o for %o", this, searchElems );
|
||||||
|
new jQuery.quicksearch( this, searchElems, settings );
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
jQuery.quicksearch = function( searchBox, searchElems, settings ) {
|
||||||
|
var timeout;
|
||||||
|
var boxdiv = $(searchBox).parents('div').eq(0);
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
setupKeyEventHandlers();
|
||||||
|
focusOnLoad();
|
||||||
|
};
|
||||||
|
|
||||||
|
function setupKeyEventHandlers() {
|
||||||
|
// console.debug( "Hooking up the 'keypress' event to %o", searchBox );
|
||||||
|
$(searchBox).
|
||||||
|
unbind( 'keyup' ).
|
||||||
|
keyup( function(e) { return onSearchKey( e.keyCode ); });
|
||||||
|
$(searchBox).
|
||||||
|
unbind( 'keypress' ).
|
||||||
|
keypress( function(e) {
|
||||||
|
switch( e.which ) {
|
||||||
|
// Execute the search on Enter, Tab, or Newline
|
||||||
|
case 9:
|
||||||
|
case 13:
|
||||||
|
case 10:
|
||||||
|
clearTimeout( timeout );
|
||||||
|
e.preventDefault();
|
||||||
|
doQuickSearch();
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Allow backspace
|
||||||
|
case 8:
|
||||||
|
return true;
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Only allow valid search characters
|
||||||
|
default:
|
||||||
|
return validQSChar( e.charCode );
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function focusOnLoad() {
|
||||||
|
if ( !settings.focusOnLoad ) return false;
|
||||||
|
$(searchBox).focus();
|
||||||
|
};
|
||||||
|
|
||||||
|
function onSearchKey ( code ) {
|
||||||
|
clearTimeout( timeout );
|
||||||
|
// console.debug( "...scheduling search." );
|
||||||
|
timeout = setTimeout( doQuickSearch, settings.delay );
|
||||||
|
};
|
||||||
|
|
||||||
|
function validQSChar( code ) {
|
||||||
|
var c = String.fromCharCode( code );
|
||||||
|
return (
|
||||||
|
(c == ':') ||
|
||||||
|
(c >= 'a' && c <= 'z') ||
|
||||||
|
(c >= 'A' && c <= 'Z')
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
function doQuickSearch() {
|
||||||
|
var searchText = searchBox.value;
|
||||||
|
var pat = new RegExp( searchText, "im" );
|
||||||
|
var shownCount = 0;
|
||||||
|
|
||||||
|
if ( settings.noSearchResultsIndicator ) {
|
||||||
|
$('#' + settings.noSearchResultsIndicator).hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
// All elements start out hidden
|
||||||
|
$(searchElems).each( function(index) {
|
||||||
|
var str = $(this).text();
|
||||||
|
|
||||||
|
if ( pat.test(str) ) {
|
||||||
|
shownCount += 1;
|
||||||
|
$(this).fadeIn();
|
||||||
|
} else {
|
||||||
|
$(this).hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if ( shownCount == 0 && settings.noSearchResultsIndicator ) {
|
||||||
|
$('#' + settings.noSearchResultsIndicator).slideDown();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
init();
|
||||||
|
};
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: album.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: artist.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: chart.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: request.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-13 14:46:39 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>json</li>
|
||||||
|
|
||||||
|
<li>hashie</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: track.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 00:41:53 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: validator.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-08 03:11:10 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
|
|
||||||
|
<title>File: redis_queryable.rb [Rails Application Documentation]</title>
|
||||||
|
|
||||||
|
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="../js/jquery.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||||||
|
charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="file file-popup">
|
||||||
|
<div id="metadata">
|
||||||
|
<dl>
|
||||||
|
<dt class="modified-date">Last Modified</dt>
|
||||||
|
<dd class="modified-date">2011-06-10 02:24:59 +0200</dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt class="requires">Requires</dt>
|
||||||
|
<dd class="requires">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="documentation">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<h2>Description</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -0,0 +1,706 @@
|
|||||||
|
/*
|
||||||
|
* "Darkfish" Rdoc CSS
|
||||||
|
* $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
|
||||||
|
*
|
||||||
|
* Author: Michael Granger <ged@FaerieMUD.org>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Base Green is: #6C8C22 */
|
||||||
|
|
||||||
|
*{ padding: 0; margin: 0; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #efefef;
|
||||||
|
font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
|
||||||
|
}
|
||||||
|
body.class, body.module, body.file {
|
||||||
|
margin-left: 40px;
|
||||||
|
}
|
||||||
|
body.file-popup {
|
||||||
|
font-size: 90%;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 300%;
|
||||||
|
text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
|
||||||
|
color: #6C8C22;
|
||||||
|
}
|
||||||
|
h2,h3,h4 { margin-top: 1.5em; }
|
||||||
|
|
||||||
|
:link,
|
||||||
|
:visited {
|
||||||
|
color: #6C8C22;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
:link:hover,
|
||||||
|
:visited:hover {
|
||||||
|
border-bottom: 1px dotted #6C8C22;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: #ddd;
|
||||||
|
padding: 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* @group Generic Classes */
|
||||||
|
|
||||||
|
.initially-hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quicksearch-field {
|
||||||
|
width: 98%;
|
||||||
|
background: #ddd;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
height: 1.5em;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
}
|
||||||
|
.quicksearch-field:focus {
|
||||||
|
background: #f1edba;
|
||||||
|
}
|
||||||
|
|
||||||
|
.missing-docs {
|
||||||
|
font-size: 120%;
|
||||||
|
background: white url(images/wrench_orange.png) no-repeat 4px center;
|
||||||
|
color: #ccc;
|
||||||
|
line-height: 2em;
|
||||||
|
border: 1px solid #d00;
|
||||||
|
opacity: 1;
|
||||||
|
padding-left: 20px;
|
||||||
|
text-indent: 24px;
|
||||||
|
letter-spacing: 3px;
|
||||||
|
font-weight: bold;
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
-moz-border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.target-section {
|
||||||
|
border: 2px solid #dcce90;
|
||||||
|
border-left-width: 8px;
|
||||||
|
padding: 0 1em;
|
||||||
|
background: #fff3c2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
|
||||||
|
/* @group Index Page, Standalone file pages */
|
||||||
|
body.indexpage {
|
||||||
|
margin: 1em 3em;
|
||||||
|
}
|
||||||
|
body.indexpage p,
|
||||||
|
body.indexpage div,
|
||||||
|
body.file p {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indexpage ul,
|
||||||
|
.file #documentation ul {
|
||||||
|
line-height: 160%;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.indexpage ul :link,
|
||||||
|
.indexpage ul :visited {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indexpage li,
|
||||||
|
.file #documentation li {
|
||||||
|
padding-left: 20px;
|
||||||
|
background: url(images/bullet_black.png) no-repeat left 4px;
|
||||||
|
}
|
||||||
|
.indexpage li.module {
|
||||||
|
background: url(images/package.png) no-repeat left 4px;
|
||||||
|
}
|
||||||
|
.indexpage li.class {
|
||||||
|
background: url(images/ruby.png) no-repeat left 4px;
|
||||||
|
}
|
||||||
|
.indexpage li.file {
|
||||||
|
background: url(images/page_white_text.png) no-repeat left 4px;
|
||||||
|
}
|
||||||
|
.file li p,
|
||||||
|
.indexpage li p {
|
||||||
|
margin: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Top-Level Structure */
|
||||||
|
|
||||||
|
.class #metadata,
|
||||||
|
.file #metadata,
|
||||||
|
.module #metadata {
|
||||||
|
float: left;
|
||||||
|
width: 260px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.class #documentation,
|
||||||
|
.file #documentation,
|
||||||
|
.module #documentation {
|
||||||
|
margin: 2em 1em 5em 300px;
|
||||||
|
min-width: 340px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file #metadata {
|
||||||
|
margin: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#validator-badges {
|
||||||
|
clear: both;
|
||||||
|
margin: 1em 1em 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Metadata Section */
|
||||||
|
#metadata .section {
|
||||||
|
background-color: #dedede;
|
||||||
|
-moz-border-radius: 5px;
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
margin: 0 8px 16px;
|
||||||
|
font-size: 90%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
#metadata h3.section-header {
|
||||||
|
margin: 0;
|
||||||
|
padding: 2px 8px;
|
||||||
|
background: #ccc;
|
||||||
|
color: #666;
|
||||||
|
-moz-border-radius-topleft: 4px;
|
||||||
|
-moz-border-radius-topright: 4px;
|
||||||
|
-webkit-border-top-left-radius: 4px;
|
||||||
|
-webkit-border-top-right-radius: 4px;
|
||||||
|
border-bottom: 1px solid #aaa;
|
||||||
|
}
|
||||||
|
#metadata #home-section h3.section-header {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#metadata ul,
|
||||||
|
#metadata dl,
|
||||||
|
#metadata p {
|
||||||
|
padding: 8px;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#file-metadata ul {
|
||||||
|
padding-left: 28px;
|
||||||
|
list-style-image: url(images/page_green.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
dl.svninfo {
|
||||||
|
color: #666;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
dl.svninfo dt {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.link-list li {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
ul.link-list .type {
|
||||||
|
font-size: 8px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: white;
|
||||||
|
background: #969696;
|
||||||
|
padding: 2px 4px;
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
|
||||||
|
/* @group Project Metadata Section */
|
||||||
|
#project-metadata {
|
||||||
|
margin-top: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file #project-metadata {
|
||||||
|
margin-top: 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#project-metadata .section {
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
}
|
||||||
|
#project-metadata h3.section-header {
|
||||||
|
border-bottom: 1px solid #aaa;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
#project-metadata h3.section-header .search-toggle {
|
||||||
|
position: absolute;
|
||||||
|
right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#project-metadata form {
|
||||||
|
color: #777;
|
||||||
|
background: #ccc;
|
||||||
|
padding: 8px 8px 16px;
|
||||||
|
border-bottom: 1px solid #bbb;
|
||||||
|
}
|
||||||
|
#project-metadata fieldset {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#no-class-search-results {
|
||||||
|
margin: 0 auto 1em;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
|
||||||
|
/* @group Documentation Section */
|
||||||
|
#description {
|
||||||
|
font-size: 100%;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
#description p {
|
||||||
|
margin: 1em 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#description li p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#description ul {
|
||||||
|
margin-left: 1.5em;
|
||||||
|
}
|
||||||
|
#description ul li {
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#description dl,
|
||||||
|
#documentation dl {
|
||||||
|
margin: 8px 1.5em;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
#description dl {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#description dt,
|
||||||
|
#documentation dt {
|
||||||
|
padding: 2px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: #ddd;
|
||||||
|
}
|
||||||
|
#description dd,
|
||||||
|
#documentation dd {
|
||||||
|
padding: 2px 12px;
|
||||||
|
}
|
||||||
|
#description dd + dt,
|
||||||
|
#documentation dd + dt {
|
||||||
|
margin-top: 0.7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#documentation .section {
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
#documentation h3.section-header {
|
||||||
|
margin-top: 2em;
|
||||||
|
padding: 0.75em 0.5em;
|
||||||
|
background-color: #dedede;
|
||||||
|
color: #333;
|
||||||
|
font-size: 150%;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#constants-list > dl,
|
||||||
|
#attributes-list > dl {
|
||||||
|
margin: 1em 0 2em;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
#constants-list > dl dt,
|
||||||
|
#attributes-list > dl dt {
|
||||||
|
padding-left: 0;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: Monaco, "Andale Mono";
|
||||||
|
background: inherit;
|
||||||
|
}
|
||||||
|
#constants-list > dl dt a,
|
||||||
|
#attributes-list > dl dt a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
#constants-list > dl dd,
|
||||||
|
#attributes-list > dl dd {
|
||||||
|
margin: 0 0 1em 0;
|
||||||
|
padding: 0;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @group Method Details */
|
||||||
|
|
||||||
|
#documentation .method-source-code {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#documentation .method-detail {
|
||||||
|
margin: 0.5em 0;
|
||||||
|
padding: 0.5em 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
#documentation .method-detail:hover {
|
||||||
|
background-color: #f1edba;
|
||||||
|
}
|
||||||
|
#documentation .method-heading {
|
||||||
|
position: relative;
|
||||||
|
padding: 2px 4px 0 20px;
|
||||||
|
font-size: 125%;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
background: url(images/brick.png) no-repeat left bottom;
|
||||||
|
}
|
||||||
|
#documentation .method-heading :link,
|
||||||
|
#documentation .method-heading :visited {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
#documentation .method-click-advice {
|
||||||
|
position: absolute;
|
||||||
|
top: 2px;
|
||||||
|
right: 5px;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #9b9877;
|
||||||
|
visibility: hidden;
|
||||||
|
padding-right: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
background: url(images/zoom.png) no-repeat right top;
|
||||||
|
}
|
||||||
|
#documentation .method-detail:hover .method-click-advice {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
#documentation .method-alias .method-heading {
|
||||||
|
color: #666;
|
||||||
|
background: url(images/brick_link.png) no-repeat left bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
#documentation .method-description,
|
||||||
|
#documentation .aliases {
|
||||||
|
margin: 0 20px;
|
||||||
|
line-height: 1.2em;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
#documentation .aliases {
|
||||||
|
padding-top: 4px;
|
||||||
|
font-style: italic;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
#documentation .method-description p {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
#documentation .method-description p + p {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
#documentation .method-description ul {
|
||||||
|
margin-left: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#documentation .attribute-method-heading {
|
||||||
|
background: url(images/tag_green.png) no-repeat left bottom;
|
||||||
|
}
|
||||||
|
#documentation #attribute-method-details .method-detail:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
#documentation .attribute-access-type {
|
||||||
|
font-size: 60%;
|
||||||
|
text-transform: uppercase;
|
||||||
|
vertical-align: super;
|
||||||
|
padding: 0 2px;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* @group Source Code */
|
||||||
|
|
||||||
|
div.method-source-code {
|
||||||
|
background: #262626;
|
||||||
|
color: #efefef;
|
||||||
|
margin: 1em;
|
||||||
|
padding: 0.5em;
|
||||||
|
border: 1px dashed #999;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.method-source-code pre {
|
||||||
|
background: inherit;
|
||||||
|
padding: 0;
|
||||||
|
color: white;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @group Ruby keyword styles */
|
||||||
|
|
||||||
|
.ruby-constant { color: #7fffd4; background: transparent; }
|
||||||
|
.ruby-keyword { color: #00ffff; background: transparent; }
|
||||||
|
.ruby-ivar { color: #eedd82; background: transparent; }
|
||||||
|
.ruby-operator { color: #00ffee; background: transparent; }
|
||||||
|
.ruby-identifier { color: #ffdead; background: transparent; }
|
||||||
|
.ruby-node { color: #ffa07a; background: transparent; }
|
||||||
|
.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
|
||||||
|
.ruby-regexp { color: #ffa07a; background: transparent; }
|
||||||
|
.ruby-value { color: #7fffd4; background: transparent; }
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
|
||||||
|
/* @group File Popup Contents */
|
||||||
|
|
||||||
|
.file #metadata,
|
||||||
|
.file-popup #metadata {
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-popup dl {
|
||||||
|
font-size: 80%;
|
||||||
|
padding: 0.75em;
|
||||||
|
background-color: #dedede;
|
||||||
|
color: #333;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
}
|
||||||
|
.file dt {
|
||||||
|
font-weight: bold;
|
||||||
|
padding-left: 22px;
|
||||||
|
line-height: 20px;
|
||||||
|
background: url(images/page_white_width.png) no-repeat left top;
|
||||||
|
}
|
||||||
|
.file dt.modified-date {
|
||||||
|
background: url(images/date.png) no-repeat left top;
|
||||||
|
}
|
||||||
|
.file dt.requires {
|
||||||
|
background: url(images/plugin.png) no-repeat left top;
|
||||||
|
}
|
||||||
|
.file dt.scs-url {
|
||||||
|
background: url(images/wrench.png) no-repeat left top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file dl dd {
|
||||||
|
margin: 0 0 1em 0;
|
||||||
|
}
|
||||||
|
.file #metadata dl dd ul {
|
||||||
|
list-style: circle;
|
||||||
|
margin-left: 20px;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
.file #metadata dl dd ul li {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.file h2 {
|
||||||
|
margin-top: 2em;
|
||||||
|
padding: 0.75em 0.5em;
|
||||||
|
background-color: #dedede;
|
||||||
|
color: #333;
|
||||||
|
font-size: 120%;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* @group ThickBox Styles */
|
||||||
|
#TB_window {
|
||||||
|
font: 12px Arial, Helvetica, sans-serif;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_secondLine {
|
||||||
|
font: 10px Arial, Helvetica, sans-serif;
|
||||||
|
color:#666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_window :link,
|
||||||
|
#TB_window :visited { color: #666666; }
|
||||||
|
#TB_window :link:hover,
|
||||||
|
#TB_window :visited:hover { color: #000; }
|
||||||
|
#TB_window :link:active,
|
||||||
|
#TB_window :visited:active { color: #666666; }
|
||||||
|
#TB_window :link:focus,
|
||||||
|
#TB_window :visited:focus { color: #666666; }
|
||||||
|
|
||||||
|
#TB_overlay {
|
||||||
|
position: fixed;
|
||||||
|
z-index:100;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
height:100%;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
|
||||||
|
.TB_overlayBG {
|
||||||
|
background-color:#000;
|
||||||
|
filter:alpha(opacity=75);
|
||||||
|
-moz-opacity: 0.75;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #TB_overlay { /* ie6 hack */
|
||||||
|
position: absolute;
|
||||||
|
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_window {
|
||||||
|
position: fixed;
|
||||||
|
background: #ffffff;
|
||||||
|
z-index: 102;
|
||||||
|
color:#000000;
|
||||||
|
display:none;
|
||||||
|
border: 4px solid #525252;
|
||||||
|
text-align:left;
|
||||||
|
top:50%;
|
||||||
|
left:50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #TB_window { /* ie6 hack */
|
||||||
|
position: absolute;
|
||||||
|
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_window img#TB_Image {
|
||||||
|
display:block;
|
||||||
|
margin: 15px 0 0 15px;
|
||||||
|
border-right: 1px solid #ccc;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
border-top: 1px solid #666;
|
||||||
|
border-left: 1px solid #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_caption{
|
||||||
|
height:25px;
|
||||||
|
padding:7px 30px 10px 25px;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_closeWindow{
|
||||||
|
height:25px;
|
||||||
|
padding:11px 25px 10px 0;
|
||||||
|
float:right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_closeAjaxWindow{
|
||||||
|
padding:7px 10px 5px 0;
|
||||||
|
margin-bottom:1px;
|
||||||
|
text-align:right;
|
||||||
|
float:right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxWindowTitle{
|
||||||
|
float:left;
|
||||||
|
padding:7px 0 5px 10px;
|
||||||
|
margin-bottom:1px;
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_title{
|
||||||
|
background-color: #6C8C22;
|
||||||
|
color: #dedede;
|
||||||
|
height:40px;
|
||||||
|
}
|
||||||
|
#TB_title :link,
|
||||||
|
#TB_title :visited {
|
||||||
|
color: white !important;
|
||||||
|
border-bottom: 1px dotted #dedede;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxContent{
|
||||||
|
clear:both;
|
||||||
|
padding:2px 15px 15px 15px;
|
||||||
|
overflow:auto;
|
||||||
|
text-align:left;
|
||||||
|
line-height:1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxContent.TB_modal{
|
||||||
|
padding:15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxContent p{
|
||||||
|
padding:5px 0px 5px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_load{
|
||||||
|
position: fixed;
|
||||||
|
display:none;
|
||||||
|
height:13px;
|
||||||
|
width:208px;
|
||||||
|
z-index:103;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #TB_load { /* ie6 hack */
|
||||||
|
position: absolute;
|
||||||
|
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_HideSelect{
|
||||||
|
z-index:99;
|
||||||
|
position:fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-color:#fff;
|
||||||
|
border:none;
|
||||||
|
filter:alpha(opacity=0);
|
||||||
|
-moz-opacity: 0;
|
||||||
|
opacity: 0;
|
||||||
|
height:100%;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #TB_HideSelect { /* ie6 hack */
|
||||||
|
position: absolute;
|
||||||
|
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_iframeContent{
|
||||||
|
clear:both;
|
||||||
|
border:none;
|
||||||
|
margin-bottom:-1px;
|
||||||
|
margin-top:1px;
|
||||||
|
_margin-bottom:1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Debugging Section */
|
||||||
|
|
||||||
|
#debugging-toggle {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#debugging-toggle img {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#rdoc-debugging-section-dump {
|
||||||
|
display: none;
|
||||||
|
margin: 0 2em 2em;
|
||||||
|
background: #ccc;
|
||||||
|
border: 1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* @end */
|
||||||