gqli 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +31 -0
  5. data/.rubocop_todo.yml +44 -0
  6. data/.travis.yml +13 -0
  7. data/.yardopts +4 -0
  8. data/CHANGELOG.md +9 -0
  9. data/Gemfile +9 -0
  10. data/Gemfile.lock +154 -0
  11. data/Guardfile +24 -0
  12. data/LICENSE.txt +21 -0
  13. data/README.md +284 -0
  14. data/Rakefile +33 -0
  15. data/coverage/.last_run.json +5 -0
  16. data/coverage/.resultset.json +512 -0
  17. data/coverage/.resultset.json.lock +0 -0
  18. data/coverage/assets/0.10.2/application.css +799 -0
  19. data/coverage/assets/0.10.2/application.js +1707 -0
  20. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  21. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  22. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  23. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  24. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  25. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  26. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  27. data/coverage/assets/0.10.2/loading.gif +0 -0
  28. data/coverage/assets/0.10.2/magnify.png +0 -0
  29. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  30. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  31. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  32. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  33. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  34. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  35. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  36. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  37. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  38. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  39. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  40. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  41. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  42. data/coverage/index.html +3255 -0
  43. data/doc/GQLi/Base.html +628 -0
  44. data/doc/GQLi/Client.html +830 -0
  45. data/doc/GQLi/DSL.html +421 -0
  46. data/doc/GQLi/Fragment.html +405 -0
  47. data/doc/GQLi/Introspection.html +837 -0
  48. data/doc/GQLi/Node.html +413 -0
  49. data/doc/GQLi/Query.html +390 -0
  50. data/doc/GQLi/Response.html +370 -0
  51. data/doc/GQLi.html +157 -0
  52. data/doc/_index.html +236 -0
  53. data/doc/class_list.html +51 -0
  54. data/doc/css/common.css +1 -0
  55. data/doc/css/full_list.css +58 -0
  56. data/doc/css/style.css +496 -0
  57. data/doc/file.CHANGELOG.html +76 -0
  58. data/doc/file.LICENSE.html +70 -0
  59. data/doc/file.README.html +365 -0
  60. data/doc/file_list.html +66 -0
  61. data/doc/frames.html +17 -0
  62. data/doc/index.html +365 -0
  63. data/doc/js/app.js +292 -0
  64. data/doc/js/full_list.js +216 -0
  65. data/doc/js/jquery.js +4 -0
  66. data/doc/method_list.html +355 -0
  67. data/doc/top-level-namespace.html +110 -0
  68. data/gqli.gemspec +37 -0
  69. data/lib/gqli/base.rb +53 -0
  70. data/lib/gqli/client.rb +59 -0
  71. data/lib/gqli/dsl.rb +37 -0
  72. data/lib/gqli/fragment.rb +25 -0
  73. data/lib/gqli/introspection.rb +215 -0
  74. data/lib/gqli/node.rb +48 -0
  75. data/lib/gqli/query.rb +29 -0
  76. data/lib/gqli/response.rb +15 -0
  77. data/lib/gqli/version.rb +7 -0
  78. data/lib/gqli.rb +6 -0
  79. data/spec/fixtures/vcr_cassettes/catCollection.yml +63 -0
  80. data/spec/fixtures/vcr_cassettes/client.yml +171 -0
  81. data/spec/fixtures/vcr_cassettes/validation_error.yml +62 -0
  82. data/spec/lib/gqli/client_spec.rb +90 -0
  83. data/spec/lib/gqli/dsl_spec.rb +205 -0
  84. data/spec/lib/gqli/introspection_spec.rb +125 -0
  85. data/spec/spec_helper.rb +25 -0
  86. data/usage.rb +100 -0
  87. data/usage_introspection.rb +63 -0
  88. data/usage_with_inlined_dsl.rb +69 -0
  89. metadata +387 -0
@@ -0,0 +1,837 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: GQLi::Introspection
8
+
9
+ &mdash; Documentation by YARD 0.9.16
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "GQLi::Introspection";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (I)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../GQLi.html" title="GQLi (module)">GQLi</a></span></span>
41
+ &raquo;
42
+ <span class="title">Introspection</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: GQLi::Introspection
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">GQLi::Introspection</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+ <dl>
89
+ <dt>Extended by:</dt>
90
+ <dd><span class='object_link'><a href="DSL.html" title="GQLi::DSL (module)">DSL</a></span></dd>
91
+ </dl>
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Defined in:</dt>
102
+ <dd>lib/gqli/introspection.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+ <h2>Overview</h2><div class="docstring">
108
+ <div class="discussion">
109
+
110
+ <p>Introspection schema and validator</p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+
118
+ </div>
119
+
120
+ <h2>
121
+ Constant Summary
122
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
123
+ </h2>
124
+
125
+ <dl class="constants">
126
+
127
+ <dt id="TypeRef-constant" class="">TypeRef =
128
+ <div class="docstring">
129
+ <div class="discussion">
130
+
131
+ <p>Specific type kind introspection fragment</p>
132
+
133
+
134
+ </div>
135
+ </div>
136
+ <div class="tags">
137
+
138
+
139
+ </div>
140
+ </dt>
141
+ <dd><pre class="code"><span class='id identifier rubyid_fragment'>fragment</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>TypeRef</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>__Type</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
142
+ <span class='id identifier rubyid_kind'>kind</span>
143
+ <span class='id identifier rubyid_name'>name</span>
144
+ <span class='id identifier rubyid_ofType'>ofType</span> <span class='lbrace'>{</span>
145
+ <span class='id identifier rubyid_kind'>kind</span>
146
+ <span class='id identifier rubyid_name'>name</span>
147
+ <span class='id identifier rubyid_ofType'>ofType</span> <span class='lbrace'>{</span>
148
+ <span class='id identifier rubyid_kind'>kind</span>
149
+ <span class='id identifier rubyid_name'>name</span>
150
+ <span class='id identifier rubyid_ofType'>ofType</span> <span class='lbrace'>{</span>
151
+ <span class='id identifier rubyid_kind'>kind</span>
152
+ <span class='id identifier rubyid_name'>name</span>
153
+ <span class='rbrace'>}</span>
154
+ <span class='rbrace'>}</span>
155
+ <span class='rbrace'>}</span>
156
+ <span class='rbrace'>}</span></pre></dd>
157
+
158
+ <dt id="InputValue-constant" class="">InputValue =
159
+ <div class="docstring">
160
+ <div class="discussion">
161
+
162
+ <p>Input value introspection fragment</p>
163
+
164
+
165
+ </div>
166
+ </div>
167
+ <div class="tags">
168
+
169
+
170
+ </div>
171
+ </dt>
172
+ <dd><pre class="code"><span class='id identifier rubyid_fragment'>fragment</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>InputValue</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>__InputValue</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
173
+ <span class='id identifier rubyid_name'>name</span>
174
+ <span class='id identifier rubyid_description'>description</span>
175
+ <span class='id identifier rubyid_type'>type</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#TypeRef-constant" title="GQLi::Introspection::TypeRef (constant)">TypeRef</a></span></span> <span class='rbrace'>}</span>
176
+ <span class='id identifier rubyid_defaultValue'>defaultValue</span>
177
+ <span class='rbrace'>}</span></pre></dd>
178
+
179
+ <dt id="FullType-constant" class="">FullType =
180
+ <div class="docstring">
181
+ <div class="discussion">
182
+
183
+ <p>Type introspection fragment</p>
184
+
185
+
186
+ </div>
187
+ </div>
188
+ <div class="tags">
189
+
190
+
191
+ </div>
192
+ </dt>
193
+ <dd><pre class="code"><span class='id identifier rubyid_fragment'>fragment</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>FullType</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>__Type</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
194
+ <span class='id identifier rubyid_kind'>kind</span>
195
+ <span class='id identifier rubyid_name'>name</span>
196
+ <span class='id identifier rubyid_description'>description</span>
197
+ <span class='id identifier rubyid_fields'>fields</span><span class='lparen'>(</span><span class='label'>includeDeprecated:</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
198
+ <span class='id identifier rubyid_name'>name</span>
199
+ <span class='id identifier rubyid_description'>description</span>
200
+ <span class='id identifier rubyid_args'>args</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#InputValue-constant" title="GQLi::Introspection::InputValue (constant)">InputValue</a></span></span> <span class='rbrace'>}</span>
201
+ <span class='id identifier rubyid_type'>type</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#TypeRef-constant" title="GQLi::Introspection::TypeRef (constant)">TypeRef</a></span></span> <span class='rbrace'>}</span>
202
+ <span class='id identifier rubyid_isDeprecated'>isDeprecated</span>
203
+ <span class='id identifier rubyid_deprecationReason'>deprecationReason</span>
204
+ <span class='rbrace'>}</span>
205
+ <span class='id identifier rubyid_inputFields'>inputFields</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#InputValue-constant" title="GQLi::Introspection::InputValue (constant)">InputValue</a></span></span> <span class='rbrace'>}</span>
206
+ <span class='id identifier rubyid_interfaces'>interfaces</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#TypeRef-constant" title="GQLi::Introspection::TypeRef (constant)">TypeRef</a></span></span> <span class='rbrace'>}</span>
207
+ <span class='id identifier rubyid_enumValues'>enumValues</span><span class='lparen'>(</span><span class='label'>includeDeprecated:</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
208
+ <span class='id identifier rubyid_name'>name</span>
209
+ <span class='id identifier rubyid_description'>description</span>
210
+ <span class='id identifier rubyid_isDeprecated'>isDeprecated</span>
211
+ <span class='id identifier rubyid_deprecationReason'>deprecationReason</span>
212
+ <span class='rbrace'>}</span>
213
+ <span class='id identifier rubyid_possibleTypes'>possibleTypes</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#TypeRef-constant" title="GQLi::Introspection::TypeRef (constant)">TypeRef</a></span></span> <span class='rbrace'>}</span>
214
+ <span class='rbrace'>}</span></pre></dd>
215
+
216
+ <dt id="IntrospectionQuery-constant" class="">IntrospectionQuery =
217
+ <div class="docstring">
218
+ <div class="discussion">
219
+
220
+ <p>Query for fetching the complete schema</p>
221
+
222
+
223
+ </div>
224
+ </div>
225
+ <div class="tags">
226
+
227
+
228
+ </div>
229
+ </dt>
230
+ <dd><pre class="code"><span class='id identifier rubyid_query'>query</span> <span class='lbrace'>{</span>
231
+ <span class='id identifier rubyid___schema'>__schema</span> <span class='lbrace'>{</span>
232
+ <span class='id identifier rubyid_queryType'>queryType</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span>
233
+ <span class='id identifier rubyid_mutationType'>mutationType</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span>
234
+ <span class='id identifier rubyid_subscriptionType'>subscriptionType</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span>
235
+ <span class='id identifier rubyid_types'>types</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#FullType-constant" title="GQLi::Introspection::FullType (constant)">FullType</a></span></span> <span class='rbrace'>}</span>
236
+ <span class='id identifier rubyid_directives'>directives</span> <span class='lbrace'>{</span>
237
+ <span class='id identifier rubyid_name'>name</span>
238
+ <span class='id identifier rubyid_description'>description</span>
239
+ <span class='id identifier rubyid_args'>args</span> <span class='lbrace'>{</span> <span class='id identifier rubyid____'>___</span> <span class='const'><span class='object_link'><a href="#InputValue-constant" title="GQLi::Introspection::InputValue (constant)">InputValue</a></span></span> <span class='rbrace'>}</span>
240
+ <span class='id identifier rubyid_onOperation'>onOperation</span>
241
+ <span class='id identifier rubyid_onFragment'>onFragment</span>
242
+ <span class='id identifier rubyid_onField'>onField</span>
243
+ <span class='rbrace'>}</span>
244
+ <span class='rbrace'>}</span>
245
+ <span class='rbrace'>}</span></pre></dd>
246
+
247
+ </dl>
248
+
249
+
250
+
251
+
252
+
253
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
254
+ <ul class="summary">
255
+
256
+ <li class="public ">
257
+ <span class="summary_signature">
258
+
259
+ <a href="#mutation_type-instance_method" title="#mutation_type (instance method)">#<strong>mutation_type</strong> &#x21d2; Object </a>
260
+
261
+
262
+
263
+ </span>
264
+
265
+
266
+
267
+
268
+ <span class="note title readonly">readonly</span>
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+ <span class="summary_desc"><div class='inline'>
279
+ <p>Returns the value of attribute mutation_type.</p>
280
+ </div></span>
281
+
282
+ </li>
283
+
284
+
285
+ <li class="public ">
286
+ <span class="summary_signature">
287
+
288
+ <a href="#query_type-instance_method" title="#query_type (instance method)">#<strong>query_type</strong> &#x21d2; Object </a>
289
+
290
+
291
+
292
+ </span>
293
+
294
+
295
+
296
+
297
+ <span class="note title readonly">readonly</span>
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ <span class="summary_desc"><div class='inline'>
308
+ <p>Returns the value of attribute query_type.</p>
309
+ </div></span>
310
+
311
+ </li>
312
+
313
+
314
+ <li class="public ">
315
+ <span class="summary_signature">
316
+
317
+ <a href="#schema-instance_method" title="#schema (instance method)">#<strong>schema</strong> &#x21d2; Object </a>
318
+
319
+
320
+
321
+ </span>
322
+
323
+
324
+
325
+
326
+ <span class="note title readonly">readonly</span>
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+ <span class="summary_desc"><div class='inline'>
337
+ <p>Returns the value of attribute schema.</p>
338
+ </div></span>
339
+
340
+ </li>
341
+
342
+
343
+ <li class="public ">
344
+ <span class="summary_signature">
345
+
346
+ <a href="#subscription_type-instance_method" title="#subscription_type (instance method)">#<strong>subscription_type</strong> &#x21d2; Object </a>
347
+
348
+
349
+
350
+ </span>
351
+
352
+
353
+
354
+
355
+ <span class="note title readonly">readonly</span>
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+ <span class="summary_desc"><div class='inline'>
366
+ <p>Returns the value of attribute subscription_type.</p>
367
+ </div></span>
368
+
369
+ </li>
370
+
371
+
372
+ <li class="public ">
373
+ <span class="summary_signature">
374
+
375
+ <a href="#types-instance_method" title="#types (instance method)">#<strong>types</strong> &#x21d2; Object </a>
376
+
377
+
378
+
379
+ </span>
380
+
381
+
382
+
383
+
384
+ <span class="note title readonly">readonly</span>
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+ <span class="summary_desc"><div class='inline'>
395
+ <p>Returns the value of attribute types.</p>
396
+ </div></span>
397
+
398
+ </li>
399
+
400
+
401
+ </ul>
402
+
403
+
404
+
405
+
406
+
407
+ <h2>
408
+ Instance Method Summary
409
+ <small><a href="#" class="summary_toggle">collapse</a></small>
410
+ </h2>
411
+
412
+ <ul class="summary">
413
+
414
+ <li class="public ">
415
+ <span class="summary_signature">
416
+
417
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client) &#x21d2; Introspection </a>
418
+
419
+
420
+
421
+ </span>
422
+
423
+
424
+ <span class="note title constructor">constructor</span>
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+ <span class="summary_desc"><div class='inline'>
434
+ <p>A new instance of Introspection.</p>
435
+ </div></span>
436
+
437
+ </li>
438
+
439
+
440
+ <li class="public ">
441
+ <span class="summary_signature">
442
+
443
+ <a href="#valid%3F-instance_method" title="#valid? (instance method)">#<strong>valid?</strong>(query) &#x21d2; Boolean </a>
444
+
445
+
446
+
447
+ </span>
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+ <span class="summary_desc"><div class='inline'>
458
+ <p>Returns wether the query is valid or not.</p>
459
+ </div></span>
460
+
461
+ </li>
462
+
463
+
464
+ </ul>
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="DSL.html" title="GQLi::DSL (module)">DSL</a></span></h3>
477
+ <p class="inherited"><span class='object_link'><a href="DSL.html#fragment-class_method" title="GQLi::DSL.fragment (method)">fragment</a></span>, <span class='object_link'><a href="DSL.html#fragment-instance_method" title="GQLi::DSL#fragment (method)">fragment</a></span>, <span class='object_link'><a href="DSL.html#query-class_method" title="GQLi::DSL.query (method)">query</a></span>, <span class='object_link'><a href="DSL.html#query-instance_method" title="GQLi::DSL#query (method)">query</a></span></p>
478
+ <div id="constructor_details" class="method_details_list">
479
+ <h2>Constructor Details</h2>
480
+
481
+ <div class="method_details first">
482
+ <h3 class="signature first" id="initialize-instance_method">
483
+
484
+ #<strong>initialize</strong>(client) &#x21d2; <tt><span class='object_link'><a href="" title="GQLi::Introspection (class)">Introspection</a></span></tt>
485
+
486
+
487
+
488
+
489
+
490
+ </h3><div class="docstring">
491
+ <div class="discussion">
492
+
493
+ <p>Returns a new instance of Introspection</p>
494
+
495
+
496
+ </div>
497
+ </div>
498
+ <div class="tags">
499
+
500
+
501
+ </div><table class="source_code">
502
+ <tr>
503
+ <td>
504
+ <pre class="lines">
505
+
506
+
507
+ 80
508
+ 81
509
+ 82
510
+ 83
511
+ 84
512
+ 85
513
+ 86</pre>
514
+ </td>
515
+ <td>
516
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 80</span>
517
+
518
+ <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>
519
+ <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>
520
+ <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>
521
+ <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>
522
+ <span class='ivar'>@subscription_type</span> <span class='op'>=</span> <span class='id identifier rubyid_schema'>schema</span><span class='period'>.</span><span class='id identifier rubyid_subscriptionType'>subscriptionType</span>
523
+ <span class='ivar'>@types</span> <span class='op'>=</span> <span class='id identifier rubyid_schema'>schema</span><span class='period'>.</span><span class='id identifier rubyid_types'>types</span>
524
+ <span class='kw'>end</span></pre>
525
+ </td>
526
+ </tr>
527
+ </table>
528
+ </div>
529
+
530
+ </div>
531
+
532
+ <div id="instance_attr_details" class="attr_details">
533
+ <h2>Instance Attribute Details</h2>
534
+
535
+
536
+ <span id=""></span>
537
+ <div class="method_details first">
538
+ <h3 class="signature first" id="mutation_type-instance_method">
539
+
540
+ #<strong>mutation_type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
541
+
542
+
543
+
544
+
545
+
546
+ </h3><div class="docstring">
547
+ <div class="discussion">
548
+
549
+ <p>Returns the value of attribute mutation_type</p>
550
+
551
+
552
+ </div>
553
+ </div>
554
+ <div class="tags">
555
+
556
+
557
+ </div><table class="source_code">
558
+ <tr>
559
+ <td>
560
+ <pre class="lines">
561
+
562
+
563
+ 78
564
+ 79
565
+ 80</pre>
566
+ </td>
567
+ <td>
568
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
569
+
570
+ <span class='kw'>def</span> <span class='id identifier rubyid_mutation_type'>mutation_type</span>
571
+ <span class='ivar'>@mutation_type</span>
572
+ <span class='kw'>end</span></pre>
573
+ </td>
574
+ </tr>
575
+ </table>
576
+ </div>
577
+
578
+
579
+ <span id=""></span>
580
+ <div class="method_details ">
581
+ <h3 class="signature " id="query_type-instance_method">
582
+
583
+ #<strong>query_type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
584
+
585
+
586
+
587
+
588
+
589
+ </h3><div class="docstring">
590
+ <div class="discussion">
591
+
592
+ <p>Returns the value of attribute query_type</p>
593
+
594
+
595
+ </div>
596
+ </div>
597
+ <div class="tags">
598
+
599
+
600
+ </div><table class="source_code">
601
+ <tr>
602
+ <td>
603
+ <pre class="lines">
604
+
605
+
606
+ 78
607
+ 79
608
+ 80</pre>
609
+ </td>
610
+ <td>
611
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
612
+
613
+ <span class='kw'>def</span> <span class='id identifier rubyid_query_type'>query_type</span>
614
+ <span class='ivar'>@query_type</span>
615
+ <span class='kw'>end</span></pre>
616
+ </td>
617
+ </tr>
618
+ </table>
619
+ </div>
620
+
621
+
622
+ <span id=""></span>
623
+ <div class="method_details ">
624
+ <h3 class="signature " id="schema-instance_method">
625
+
626
+ #<strong>schema</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
627
+
628
+
629
+
630
+
631
+
632
+ </h3><div class="docstring">
633
+ <div class="discussion">
634
+
635
+ <p>Returns the value of attribute schema</p>
636
+
637
+
638
+ </div>
639
+ </div>
640
+ <div class="tags">
641
+
642
+
643
+ </div><table class="source_code">
644
+ <tr>
645
+ <td>
646
+ <pre class="lines">
647
+
648
+
649
+ 78
650
+ 79
651
+ 80</pre>
652
+ </td>
653
+ <td>
654
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
655
+
656
+ <span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span>
657
+ <span class='ivar'>@schema</span>
658
+ <span class='kw'>end</span></pre>
659
+ </td>
660
+ </tr>
661
+ </table>
662
+ </div>
663
+
664
+
665
+ <span id=""></span>
666
+ <div class="method_details ">
667
+ <h3 class="signature " id="subscription_type-instance_method">
668
+
669
+ #<strong>subscription_type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
670
+
671
+
672
+
673
+
674
+
675
+ </h3><div class="docstring">
676
+ <div class="discussion">
677
+
678
+ <p>Returns the value of attribute subscription_type</p>
679
+
680
+
681
+ </div>
682
+ </div>
683
+ <div class="tags">
684
+
685
+
686
+ </div><table class="source_code">
687
+ <tr>
688
+ <td>
689
+ <pre class="lines">
690
+
691
+
692
+ 78
693
+ 79
694
+ 80</pre>
695
+ </td>
696
+ <td>
697
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
698
+
699
+ <span class='kw'>def</span> <span class='id identifier rubyid_subscription_type'>subscription_type</span>
700
+ <span class='ivar'>@subscription_type</span>
701
+ <span class='kw'>end</span></pre>
702
+ </td>
703
+ </tr>
704
+ </table>
705
+ </div>
706
+
707
+
708
+ <span id=""></span>
709
+ <div class="method_details ">
710
+ <h3 class="signature " id="types-instance_method">
711
+
712
+ #<strong>types</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
713
+
714
+
715
+
716
+
717
+
718
+ </h3><div class="docstring">
719
+ <div class="discussion">
720
+
721
+ <p>Returns the value of attribute types</p>
722
+
723
+
724
+ </div>
725
+ </div>
726
+ <div class="tags">
727
+
728
+
729
+ </div><table class="source_code">
730
+ <tr>
731
+ <td>
732
+ <pre class="lines">
733
+
734
+
735
+ 78
736
+ 79
737
+ 80</pre>
738
+ </td>
739
+ <td>
740
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 78</span>
741
+
742
+ <span class='kw'>def</span> <span class='id identifier rubyid_types'>types</span>
743
+ <span class='ivar'>@types</span>
744
+ <span class='kw'>end</span></pre>
745
+ </td>
746
+ </tr>
747
+ </table>
748
+ </div>
749
+
750
+ </div>
751
+
752
+
753
+ <div id="instance_method_details" class="method_details_list">
754
+ <h2>Instance Method Details</h2>
755
+
756
+
757
+ <div class="method_details first">
758
+ <h3 class="signature first" id="valid?-instance_method">
759
+
760
+ #<strong>valid?</strong>(query) &#x21d2; <tt>Boolean</tt>
761
+
762
+
763
+
764
+
765
+
766
+ </h3><div class="docstring">
767
+ <div class="discussion">
768
+
769
+ <p>Returns wether the query is valid or not</p>
770
+
771
+
772
+ </div>
773
+ </div>
774
+ <div class="tags">
775
+
776
+ <p class="tag_title">Returns:</p>
777
+ <ul class="return">
778
+
779
+ <li>
780
+
781
+
782
+ <span class='type'>(<tt>Boolean</tt>)</span>
783
+
784
+
785
+
786
+ </li>
787
+
788
+ </ul>
789
+
790
+ </div><table class="source_code">
791
+ <tr>
792
+ <td>
793
+ <pre class="lines">
794
+
795
+
796
+ 89
797
+ 90
798
+ 91
799
+ 92
800
+ 93
801
+ 94
802
+ 95
803
+ 96
804
+ 97
805
+ 98</pre>
806
+ </td>
807
+ <td>
808
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 89</span>
809
+
810
+ <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>
811
+ <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>
812
+
813
+ <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'>&#39;</span><span class='tstring_content'>query</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_zero?'>zero?</span> <span class='rbrace'>}</span>
814
+ <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>
815
+ <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>
816
+ <span class='kw'>end</span>
817
+
818
+ <span class='kw'>true</span>
819
+ <span class='kw'>end</span></pre>
820
+ </td>
821
+ </tr>
822
+ </table>
823
+ </div>
824
+
825
+ </div>
826
+
827
+ </div>
828
+
829
+ <div id="footer">
830
+ Generated on Mon Oct 15 13:10:42 2018 by
831
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
832
+ 0.9.16 (ruby-2.5.1).
833
+ </div>
834
+
835
+ </div>
836
+ </body>
837
+ </html>