doc/GQLi/Introspection.html in gqli-0.2.0 vs doc/GQLi/Introspection.html in gqli-0.3.0
- old
+ new
@@ -453,16 +453,40 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns wether the query is valid or not.</p>
+<p>Returns if the query is valid.</p>
</div></span>
</li>
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#validate-instance_method" title="#validate (instance method)">#<strong>validate</strong>(query) ⇒ Object </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'>
+<p>Returns the evaluated validation for a query.</p>
+</div></span>
+
+</li>
+
+
</ul>
@@ -502,20 +526,20 @@
<tr>
<td>
<pre class="lines">
-80
81
82
83
84
85
-86</pre>
+86
+87</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 80</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 81</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='rparen'>)</span>
<span class='ivar'>@schema</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_execute!'>execute!</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#IntrospectionQuery-constant" title="GQLi::Introspection::IntrospectionQuery (constant)">IntrospectionQuery</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid___schema'>__schema</span>
<span class='ivar'>@query_type</span> <span class='op'>=</span> <span class='id identifier rubyid_schema'>schema</span><span class='period'>.</span><span class='id identifier rubyid_queryType'>queryType</span>
<span class='ivar'>@mutation_type</span> <span class='op'>=</span> <span class='id identifier rubyid_schema'>schema</span><span class='period'>.</span><span class='id identifier rubyid_mutationType'>mutationType</span>
@@ -558,16 +582,16 @@
<tr>
<td>
<pre class="lines">
-78
79
-80</pre>
+80
+81</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
<span class='kw'>def</span> <span class='id identifier rubyid_mutation_type'>mutation_type</span>
<span class='ivar'>@mutation_type</span>
<span class='kw'>end</span></pre>
</td>
@@ -601,16 +625,16 @@
<tr>
<td>
<pre class="lines">
-78
79
-80</pre>
+80
+81</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
<span class='kw'>def</span> <span class='id identifier rubyid_query_type'>query_type</span>
<span class='ivar'>@query_type</span>
<span class='kw'>end</span></pre>
</td>
@@ -644,16 +668,16 @@
<tr>
<td>
<pre class="lines">
-78
79
-80</pre>
+80
+81</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
<span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span>
<span class='ivar'>@schema</span>
<span class='kw'>end</span></pre>
</td>
@@ -687,16 +711,16 @@
<tr>
<td>
<pre class="lines">
-78
79
-80</pre>
+80
+81</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
<span class='kw'>def</span> <span class='id identifier rubyid_subscription_type'>subscription_type</span>
<span class='ivar'>@subscription_type</span>
<span class='kw'>end</span></pre>
</td>
@@ -730,16 +754,16 @@
<tr>
<td>
<pre class="lines">
-78
79
-80</pre>
+80
+81</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
<span class='kw'>def</span> <span class='id identifier rubyid_types'>types</span>
<span class='ivar'>@types</span>
<span class='kw'>end</span></pre>
</td>
@@ -764,11 +788,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns wether the query is valid or not</p>
+<p>Returns if the query is valid</p>
</div>
</div>
<div class="tags">
@@ -791,33 +815,60 @@
<tr>
<td>
<pre class="lines">
-89
-90
-91
-92
-93
-94
95
96
-97
-98</pre>
+97</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 89</span>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 95</span>
<span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
- <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_query'>query</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Query.html" title="GQLi::Query (class)">Query</a></span></span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_valid?'>valid?</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <h3 class="signature " id="validate-instance_method">
+
+ #<strong>validate</strong>(query) ⇒ <tt>Object</tt>
+
- <span class='id identifier rubyid_query_type'>query_type</span> <span class='op'>=</span> <span class='id identifier rubyid_types'>types</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_t'>t</span><span class='op'>|</span> <span class='id identifier rubyid_t'>t</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_casecmp'>casecmp</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>query</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_zero?'>zero?</span> <span class='rbrace'>}</span>
- <span class='id identifier rubyid_query'>query</span><span class='period'>.</span><span class='id identifier rubyid___nodes'>__nodes</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_node'>node</span><span class='op'>|</span>
- <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_valid_node?'>valid_node?</span><span class='lparen'>(</span><span class='id identifier rubyid_query_type'>query_type</span><span class='comma'>,</span> <span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
+
- <span class='kw'>true</span>
+
+</h3><div class="docstring">
+ <div class="discussion">
+
+<p>Returns the evaluated validation for a query</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+90
+91
+92</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 90</span>
+
+<span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
+ <span class='const'><span class='object_link'><a href="Validation.html" title="GQLi::Validation (class)">Validation</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Validation.html#initialize-instance_method" title="GQLi::Validation#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -825,10 +876,10 @@
</div>
</div>
<div id="footer">
- Generated on Thu Oct 18 10:25:37 2018 by
+ Generated on Fri Oct 19 16:26:04 2018 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.16 (ruby-2.5.1).
</div>
</div>
\ No newline at end of file