gqli 0.6.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -3
  3. data/CHANGELOG.md +17 -0
  4. data/Gemfile.lock +103 -82
  5. data/README.md +0 -5
  6. data/coverage/.last_run.json +1 -1
  7. data/coverage/.resultset.json +1774 -1205
  8. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  9. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  10. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  11. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  12. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  13. data/coverage/assets/0.12.3/application.css +1 -0
  14. data/coverage/assets/0.12.3/application.js +7 -0
  15. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/border.png +0 -0
  16. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/controls.png +0 -0
  17. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/loading.gif +0 -0
  18. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/loading_background.png +0 -0
  19. data/coverage/assets/{0.10.2 → 0.12.3}/favicon_green.png +0 -0
  20. data/coverage/assets/{0.10.2 → 0.12.3}/favicon_red.png +0 -0
  21. data/coverage/assets/{0.10.2 → 0.12.3}/favicon_yellow.png +0 -0
  22. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  23. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  24. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  25. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  27. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  28. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  29. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  30. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_222222_256x240.png +0 -0
  31. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_2e83ff_256x240.png +0 -0
  32. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_454545_256x240.png +0 -0
  33. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_888888_256x240.png +0 -0
  34. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_cd0a0a_256x240.png +0 -0
  35. data/coverage/assets/{0.10.2 → 0.12.3}/loading.gif +0 -0
  36. data/coverage/assets/{0.10.2 → 0.12.3}/magnify.png +0 -0
  37. data/coverage/index.html +19376 -7403
  38. data/doc/GQLi/Base.html +11 -11
  39. data/doc/GQLi/Client.html +175 -41
  40. data/doc/GQLi/Contentful.html +13 -11
  41. data/doc/GQLi/DSL.html +298 -30
  42. data/doc/GQLi/EnumValue.html +8 -8
  43. data/doc/GQLi/Fragment.html +8 -8
  44. data/doc/GQLi/Github.html +6 -6
  45. data/doc/GQLi/Introspection.html +46 -48
  46. data/doc/GQLi/Mutation.html +390 -0
  47. data/doc/GQLi/Node.html +8 -8
  48. data/doc/GQLi/Query.html +6 -6
  49. data/doc/GQLi/Response.html +87 -13
  50. data/doc/GQLi/Subscription.html +390 -0
  51. data/doc/GQLi/Validation.html +20 -20
  52. data/doc/GQLi.html +9 -9
  53. data/doc/_index.html +37 -7
  54. data/doc/class_list.html +3 -3
  55. data/doc/css/style.css +3 -2
  56. data/doc/file.CHANGELOG.html +43 -13
  57. data/doc/file.LICENSE.html +6 -6
  58. data/doc/file.README.html +31 -84
  59. data/doc/file_list.html +2 -2
  60. data/doc/frames.html +2 -2
  61. data/doc/index.html +31 -84
  62. data/doc/js/app.js +25 -3
  63. data/doc/method_list.html +147 -43
  64. data/doc/top-level-namespace.html +6 -6
  65. data/gqli.gemspec +5 -6
  66. data/lib/gqli/client.rb +25 -5
  67. data/lib/gqli/clients/contentful.rb +3 -2
  68. data/lib/gqli/dsl.rb +16 -1
  69. data/lib/gqli/introspection.rb +1 -3
  70. data/lib/gqli/mutation.rb +27 -0
  71. data/lib/gqli/response.rb +15 -2
  72. data/lib/gqli/subscription.rb +1 -1
  73. data/lib/gqli/validation.rb +15 -12
  74. data/lib/gqli/version.rb +1 -1
  75. data/spec/fixtures/vcr_cassettes/client.yml +98 -27
  76. data/spec/fixtures/vcr_cassettes/mutation_client.yml +4364 -0
  77. data/spec/lib/gqli/client_spec.rb +53 -0
  78. data/spec/lib/gqli/dsl_spec.rb +72 -2
  79. data/spec/lib/gqli/introspection_spec.rb +54 -0
  80. data/spec/lib/gqli/response_spec.rb +51 -0
  81. metadata +64 -73
  82. data/coverage/assets/0.10.2/application.css +0 -799
  83. data/coverage/assets/0.10.2/application.js +0 -1707
data/doc/GQLi/Node.html CHANGED
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: GQLi::Node
8
8
 
9
- &mdash; Documentation by YARD 0.9.16
9
+ &mdash; Documentation by YARD 0.9.27
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "GQLi::Node";
19
19
  relpath = '../';
20
20
  </script>
@@ -245,7 +245,7 @@
245
245
  </h3><div class="docstring">
246
246
  <div class="discussion">
247
247
 
248
- <p>Returns a new instance of Node</p>
248
+ <p>Returns a new instance of Node.</p>
249
249
 
250
250
 
251
251
  </div>
@@ -305,7 +305,7 @@
305
305
  </h3><div class="docstring">
306
306
  <div class="discussion">
307
307
 
308
- <p>Returns the value of attribute __params</p>
308
+ <p>Returns the value of attribute __params.</p>
309
309
 
310
310
 
311
311
  </div>
@@ -403,9 +403,9 @@
403
403
  </div>
404
404
 
405
405
  <div id="footer">
406
- Generated on Sat Feb 16 22:53:59 2019 by
406
+ Generated on Mon Jan 3 17:37:12 2022 by
407
407
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
408
- 0.9.16 (ruby-2.5.3).
408
+ 0.9.27 (ruby-3.0.3).
409
409
  </div>
410
410
 
411
411
  </div>
data/doc/GQLi/Query.html CHANGED
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: GQLi::Query
8
8
 
9
- &mdash; Documentation by YARD 0.9.16
9
+ &mdash; Documentation by YARD 0.9.27
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "GQLi::Query";
19
19
  relpath = '../';
20
20
  </script>
@@ -380,9 +380,9 @@
380
380
  </div>
381
381
 
382
382
  <div id="footer">
383
- Generated on Sat Feb 16 22:53:59 2019 by
383
+ Generated on Mon Jan 3 17:37:12 2022 by
384
384
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
385
- 0.9.16 (ruby-2.5.3).
385
+ 0.9.27 (ruby-3.0.3).
386
386
  </div>
387
387
 
388
388
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: GQLi::Response
8
8
 
9
- &mdash; Documentation by YARD 0.9.16
9
+ &mdash; Documentation by YARD 0.9.27
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "GQLi::Response";
19
19
  relpath = '../';
20
20
  </script>
@@ -143,6 +143,35 @@
143
143
  <p>Returns the value of attribute data.</p>
144
144
  </div></span>
145
145
 
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#errors-instance_method" title="#errors (instance method)">#<strong>errors</strong> &#x21d2; Object </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+ <span class="note title readonly">readonly</span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>Returns the value of attribute errors.</p>
173
+ </div></span>
174
+
146
175
  </li>
147
176
 
148
177
 
@@ -191,7 +220,7 @@
191
220
  <li class="public ">
192
221
  <span class="summary_signature">
193
222
 
194
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(data, query) &#x21d2; Response </a>
223
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(data, errors, query) &#x21d2; Response </a>
195
224
 
196
225
 
197
226
 
@@ -223,7 +252,7 @@
223
252
  <div class="method_details first">
224
253
  <h3 class="signature first" id="initialize-instance_method">
225
254
 
226
- #<strong>initialize</strong>(data, query) &#x21d2; <tt><span class='object_link'><a href="" title="GQLi::Response (class)">Response</a></span></tt>
255
+ #<strong>initialize</strong>(data, errors, query) &#x21d2; <tt><span class='object_link'><a href="" title="GQLi::Response (class)">Response</a></span></tt>
227
256
 
228
257
 
229
258
 
@@ -232,7 +261,7 @@
232
261
  </h3><div class="docstring">
233
262
  <div class="discussion">
234
263
 
235
- <p>Returns a new instance of Response</p>
264
+ <p>Returns a new instance of Response.</p>
236
265
 
237
266
 
238
267
  </div>
@@ -249,13 +278,15 @@
249
278
  10
250
279
  11
251
280
  12
252
- 13</pre>
281
+ 13
282
+ 14</pre>
253
283
  </td>
254
284
  <td>
255
285
  <pre class="code"><span class="info file"># File 'lib/gqli/response.rb', line 10</span>
256
286
 
257
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
287
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_errors'>errors</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
258
288
  <span class='ivar'>@data</span> <span class='op'>=</span> <span class='const'>Hashie</span><span class='op'>::</span><span class='const'>Mash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
289
+ <span class='ivar'>@errors</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_errors'>parse_errors</span><span class='lparen'>(</span><span class='id identifier rubyid_errors'>errors</span><span class='rparen'>)</span>
259
290
  <span class='ivar'>@query</span> <span class='op'>=</span> <span class='id identifier rubyid_query'>query</span>
260
291
  <span class='kw'>end</span></pre>
261
292
  </td>
@@ -282,7 +313,7 @@
282
313
  </h3><div class="docstring">
283
314
  <div class="discussion">
284
315
 
285
- <p>Returns the value of attribute data</p>
316
+ <p>Returns the value of attribute data.</p>
286
317
 
287
318
 
288
319
  </div>
@@ -312,6 +343,49 @@
312
343
  </div>
313
344
 
314
345
 
346
+ <span id=""></span>
347
+ <div class="method_details ">
348
+ <h3 class="signature " id="errors-instance_method">
349
+
350
+ #<strong>errors</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
351
+
352
+
353
+
354
+
355
+
356
+ </h3><div class="docstring">
357
+ <div class="discussion">
358
+
359
+ <p>Returns the value of attribute errors.</p>
360
+
361
+
362
+ </div>
363
+ </div>
364
+ <div class="tags">
365
+
366
+
367
+ </div><table class="source_code">
368
+ <tr>
369
+ <td>
370
+ <pre class="lines">
371
+
372
+
373
+ 8
374
+ 9
375
+ 10</pre>
376
+ </td>
377
+ <td>
378
+ <pre class="code"><span class="info file"># File 'lib/gqli/response.rb', line 8</span>
379
+
380
+ <span class='kw'>def</span> <span class='id identifier rubyid_errors'>errors</span>
381
+ <span class='ivar'>@errors</span>
382
+ <span class='kw'>end</span></pre>
383
+ </td>
384
+ </tr>
385
+ </table>
386
+ </div>
387
+
388
+
315
389
  <span id=""></span>
316
390
  <div class="method_details ">
317
391
  <h3 class="signature " id="query-instance_method">
@@ -325,7 +399,7 @@
325
399
  </h3><div class="docstring">
326
400
  <div class="discussion">
327
401
 
328
- <p>Returns the value of attribute query</p>
402
+ <p>Returns the value of attribute query.</p>
329
403
 
330
404
 
331
405
  </div>
@@ -360,9 +434,9 @@
360
434
  </div>
361
435
 
362
436
  <div id="footer">
363
- Generated on Sat Feb 16 22:53:59 2019 by
437
+ Generated on Mon Jan 3 17:37:12 2022 by
364
438
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
365
- 0.9.16 (ruby-2.5.3).
439
+ 0.9.27 (ruby-3.0.3).
366
440
  </div>
367
441
 
368
442
  </div>
@@ -0,0 +1,390 @@
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::Subscription
8
+
9
+ &mdash; Documentation by YARD 0.9.27
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "GQLi::Subscription";
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 (S)</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">Subscription</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::Subscription
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="Base.html" title="GQLi::Base (class)">Base</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Base.html" title="GQLi::Base (class)">Base</a></span></li>
78
+
79
+ <li class="next">GQLi::Subscription</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/gqli/subscription.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Subscription node</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+
119
+
120
+
121
+ <h2>Instance Attribute Summary</h2>
122
+
123
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="GQLi::Base (class)">Base</a></span></h3>
124
+ <p class="inherited"><span class='object_link'><a href="Base.html#__depth-instance_method" title="GQLi::Base#__depth (method)">#__depth</a></span>, <span class='object_link'><a href="Base.html#__name-instance_method" title="GQLi::Base#__name (method)">#__name</a></span>, <span class='object_link'><a href="Base.html#__nodes-instance_method" title="GQLi::Base#__nodes (method)">#__nodes</a></span></p>
125
+
126
+
127
+
128
+ <h2>
129
+ Instance Method Summary
130
+ <small><a href="#" class="summary_toggle">collapse</a></small>
131
+ </h2>
132
+
133
+ <ul class="summary">
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#__execute-instance_method" title="#__execute (instance method)">#<strong>__execute</strong>(client) &#x21d2; Object </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ <span class="summary_desc"><div class='inline'>
153
+ <p>Delegates itself to the client to be executed.</p>
154
+ </div></span>
155
+
156
+ </li>
157
+
158
+
159
+ <li class="public ">
160
+ <span class="summary_signature">
161
+
162
+ <a href="#to_gql-instance_method" title="#to_gql (instance method)">#<strong>to_gql</strong> &#x21d2; Object </a>
163
+
164
+
165
+
166
+ </span>
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <span class="summary_desc"><div class='inline'>
177
+ <p>Serializes to a GraphQL string.</p>
178
+ </div></span>
179
+
180
+ </li>
181
+
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
187
+
188
+
189
+
190
+ </span>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>Serializes to a GraphQL string.</p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ </ul>
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="GQLi::Base (class)">Base</a></span></h3>
220
+ <p class="inherited"><span class='object_link'><a href="Base.html#___-instance_method" title="GQLi::Base#___ (method)">#___</a></span>, <span class='object_link'><a href="Base.html#__enum-instance_method" title="GQLi::Base#__enum (method)">#__enum</a></span>, <span class='object_link'><a href="Base.html#__node-instance_method" title="GQLi::Base#__node (method)">#__node</a></span>, <span class='object_link'><a href="Base.html#__on-instance_method" title="GQLi::Base#__on (method)">#__on</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="GQLi::Base#initialize (method)">#initialize</a></span></p>
221
+ <div id="constructor_details" class="method_details_list">
222
+ <h2>Constructor Details</h2>
223
+
224
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="GQLi::Base#initialize (method)">GQLi::Base</a></span></p>
225
+
226
+ </div>
227
+ <div id="method_missing_details" class="method_details_list">
228
+ <h2>Dynamic Method Handling</h2>
229
+ <p class="notice super">
230
+ This class handles dynamic methods through the <tt>method_missing</tt> method
231
+
232
+ in the class <span class='object_link'>GQLi::Base</span>
233
+
234
+ </p>
235
+
236
+ </div>
237
+
238
+
239
+ <div id="instance_method_details" class="method_details_list">
240
+ <h2>Instance Method Details</h2>
241
+
242
+
243
+ <div class="method_details first">
244
+ <h3 class="signature first" id="__execute-instance_method">
245
+
246
+ #<strong>__execute</strong>(client) &#x21d2; <tt>Object</tt>
247
+
248
+
249
+
250
+
251
+
252
+ </h3><div class="docstring">
253
+ <div class="discussion">
254
+
255
+ <p>Delegates itself to the client to be executed</p>
256
+
257
+
258
+ </div>
259
+ </div>
260
+ <div class="tags">
261
+
262
+
263
+ </div><table class="source_code">
264
+ <tr>
265
+ <td>
266
+ <pre class="lines">
267
+
268
+
269
+ 18
270
+ 19
271
+ 20</pre>
272
+ </td>
273
+ <td>
274
+ <pre class="code"><span class="info file"># File 'lib/gqli/subscription.rb', line 18</span>
275
+
276
+ <span class='kw'>def</span> <span class='id identifier rubyid___execute'>__execute</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='rparen'>)</span>
277
+ <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='kw'>self</span><span class='rparen'>)</span>
278
+ <span class='kw'>end</span></pre>
279
+ </td>
280
+ </tr>
281
+ </table>
282
+ </div>
283
+
284
+ <div class="method_details ">
285
+ <h3 class="signature " id="to_gql-instance_method">
286
+
287
+ #<strong>to_gql</strong> &#x21d2; <tt>Object</tt>
288
+
289
+
290
+
291
+
292
+
293
+ </h3><div class="docstring">
294
+ <div class="discussion">
295
+
296
+ <p>Serializes to a GraphQL string</p>
297
+
298
+
299
+ </div>
300
+ </div>
301
+ <div class="tags">
302
+
303
+
304
+ </div><table class="source_code">
305
+ <tr>
306
+ <td>
307
+ <pre class="lines">
308
+
309
+
310
+ 7
311
+ 8
312
+ 9
313
+ 10
314
+ 11
315
+ 12
316
+ 13
317
+ 14
318
+ 15</pre>
319
+ </td>
320
+ <td>
321
+ <pre class="code"><span class="info file"># File 'lib/gqli/subscription.rb', line 7</span>
322
+
323
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_gql'>to_gql</span>
324
+ <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='heredoc_beg'>&lt;&lt;~GQL</span>
325
+ <span class='tstring_content'> subscription </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid___name'>__name</span> <span class='op'>?</span> <span class='id identifier rubyid___name'>__name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_content'>{
326
+ </span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid___nodes'>__nodes</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbeg'>:</span><span class='id identifier rubyid_to_gql'>to_gql</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>
327
+ </span><span class='tstring_content'> }
328
+ </span><span class='heredoc_end'> GQL
329
+ </span>
330
+ <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_lstrip'>lstrip</span>
331
+ <span class='kw'>end</span></pre>
332
+ </td>
333
+ </tr>
334
+ </table>
335
+ </div>
336
+
337
+ <div class="method_details ">
338
+ <h3 class="signature " id="to_s-instance_method">
339
+
340
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
341
+
342
+
343
+
344
+
345
+
346
+ </h3><div class="docstring">
347
+ <div class="discussion">
348
+
349
+ <p>Serializes to a GraphQL string</p>
350
+
351
+
352
+ </div>
353
+ </div>
354
+ <div class="tags">
355
+
356
+
357
+ </div><table class="source_code">
358
+ <tr>
359
+ <td>
360
+ <pre class="lines">
361
+
362
+
363
+ 23
364
+ 24
365
+ 25</pre>
366
+ </td>
367
+ <td>
368
+ <pre class="code"><span class="info file"># File 'lib/gqli/subscription.rb', line 23</span>
369
+
370
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
371
+ <span class='id identifier rubyid_to_gql'>to_gql</span>
372
+ <span class='kw'>end</span></pre>
373
+ </td>
374
+ </tr>
375
+ </table>
376
+ </div>
377
+
378
+ </div>
379
+
380
+ </div>
381
+
382
+ <div id="footer">
383
+ Generated on Mon Jan 3 17:37:12 2022 by
384
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
385
+ 0.9.27 (ruby-3.0.3).
386
+ </div>
387
+
388
+ </div>
389
+ </body>
390
+ </html>