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
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: GQLi::Introspection
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::Introspection";
19
19
  relpath = '../';
20
20
  </script>
@@ -237,9 +237,7 @@
237
237
  <span class='id identifier rubyid_name'>name</span>
238
238
  <span class='id identifier rubyid_description'>description</span>
239
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>
240
+ <span class='id identifier rubyid_locations'>locations</span>
243
241
  <span class='rbrace'>}</span>
244
242
  <span class='rbrace'>}</span>
245
243
  <span class='rbrace'>}</span></pre></dd>
@@ -498,7 +496,7 @@
498
496
 
499
497
 
500
498
  <h3 class="inherited">Methods included from <span class='object_link'><a href="DSL.html" title="GQLi::DSL (module)">DSL</a></span></h3>
501
- <p class="inherited"><span class='object_link'><a href="DSL.html#enum-class_method" title="GQLi::DSL.enum (method)">enum</a></span>, <span class='object_link'><a href="DSL.html#enum-instance_method" title="GQLi::DSL#enum (method)">enum</a></span>, <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>
499
+ <p class="inherited"><span class='object_link'><a href="DSL.html#enum-class_method" title="GQLi::DSL.enum (method)">enum</a></span>, <span class='object_link'><a href="DSL.html#enum-instance_method" title="GQLi::DSL#enum (method)">enum</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#fragment-class_method" title="GQLi::DSL.fragment (method)">fragment</a></span>, <span class='object_link'><a href="DSL.html#mutation-instance_method" title="GQLi::DSL#mutation (method)">mutation</a></span>, <span class='object_link'><a href="DSL.html#mutation-class_method" title="GQLi::DSL.mutation (method)">mutation</a></span>, <span class='object_link'><a href="DSL.html#query-instance_method" title="GQLi::DSL#query (method)">query</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#subscription-instance_method" title="GQLi::DSL#subscription (method)">subscription</a></span>, <span class='object_link'><a href="DSL.html#subscription-class_method" title="GQLi::DSL.subscription (method)">subscription</a></span></p>
502
500
  <div id="constructor_details" class="method_details_list">
503
501
  <h2>Constructor Details</h2>
504
502
 
@@ -514,7 +512,7 @@
514
512
  </h3><div class="docstring">
515
513
  <div class="discussion">
516
514
 
517
- <p>Returns a new instance of Introspection</p>
515
+ <p>Returns a new instance of Introspection.</p>
518
516
 
519
517
 
520
518
  </div>
@@ -528,16 +526,16 @@
528
526
  <pre class="lines">
529
527
 
530
528
 
529
+ 79
530
+ 80
531
531
  81
532
532
  82
533
533
  83
534
534
  84
535
- 85
536
- 86
537
- 87</pre>
535
+ 85</pre>
538
536
  </td>
539
537
  <td>
540
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 81</span>
538
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
541
539
 
542
540
  <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>
543
541
  <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>
@@ -570,7 +568,7 @@
570
568
  </h3><div class="docstring">
571
569
  <div class="discussion">
572
570
 
573
- <p>Returns the value of attribute mutation_type</p>
571
+ <p>Returns the value of attribute mutation_type.</p>
574
572
 
575
573
 
576
574
  </div>
@@ -584,12 +582,12 @@
584
582
  <pre class="lines">
585
583
 
586
584
 
587
- 79
588
- 80
589
- 81</pre>
585
+ 77
586
+ 78
587
+ 79</pre>
590
588
  </td>
591
589
  <td>
592
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
590
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 77</span>
593
591
 
594
592
  <span class='kw'>def</span> <span class='id identifier rubyid_mutation_type'>mutation_type</span>
595
593
  <span class='ivar'>@mutation_type</span>
@@ -613,7 +611,7 @@
613
611
  </h3><div class="docstring">
614
612
  <div class="discussion">
615
613
 
616
- <p>Returns the value of attribute query_type</p>
614
+ <p>Returns the value of attribute query_type.</p>
617
615
 
618
616
 
619
617
  </div>
@@ -627,12 +625,12 @@
627
625
  <pre class="lines">
628
626
 
629
627
 
630
- 79
631
- 80
632
- 81</pre>
628
+ 77
629
+ 78
630
+ 79</pre>
633
631
  </td>
634
632
  <td>
635
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
633
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 77</span>
636
634
 
637
635
  <span class='kw'>def</span> <span class='id identifier rubyid_query_type'>query_type</span>
638
636
  <span class='ivar'>@query_type</span>
@@ -656,7 +654,7 @@
656
654
  </h3><div class="docstring">
657
655
  <div class="discussion">
658
656
 
659
- <p>Returns the value of attribute schema</p>
657
+ <p>Returns the value of attribute schema.</p>
660
658
 
661
659
 
662
660
  </div>
@@ -670,12 +668,12 @@
670
668
  <pre class="lines">
671
669
 
672
670
 
673
- 79
674
- 80
675
- 81</pre>
671
+ 77
672
+ 78
673
+ 79</pre>
676
674
  </td>
677
675
  <td>
678
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
676
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 77</span>
679
677
 
680
678
  <span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span>
681
679
  <span class='ivar'>@schema</span>
@@ -699,7 +697,7 @@
699
697
  </h3><div class="docstring">
700
698
  <div class="discussion">
701
699
 
702
- <p>Returns the value of attribute subscription_type</p>
700
+ <p>Returns the value of attribute subscription_type.</p>
703
701
 
704
702
 
705
703
  </div>
@@ -713,12 +711,12 @@
713
711
  <pre class="lines">
714
712
 
715
713
 
716
- 79
717
- 80
718
- 81</pre>
714
+ 77
715
+ 78
716
+ 79</pre>
719
717
  </td>
720
718
  <td>
721
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
719
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 77</span>
722
720
 
723
721
  <span class='kw'>def</span> <span class='id identifier rubyid_subscription_type'>subscription_type</span>
724
722
  <span class='ivar'>@subscription_type</span>
@@ -742,7 +740,7 @@
742
740
  </h3><div class="docstring">
743
741
  <div class="discussion">
744
742
 
745
- <p>Returns the value of attribute types</p>
743
+ <p>Returns the value of attribute types.</p>
746
744
 
747
745
 
748
746
  </div>
@@ -756,12 +754,12 @@
756
754
  <pre class="lines">
757
755
 
758
756
 
759
- 79
760
- 80
761
- 81</pre>
757
+ 77
758
+ 78
759
+ 79</pre>
762
760
  </td>
763
761
  <td>
764
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 79</span>
762
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 77</span>
765
763
 
766
764
  <span class='kw'>def</span> <span class='id identifier rubyid_types'>types</span>
767
765
  <span class='ivar'>@types</span>
@@ -817,12 +815,12 @@
817
815
  <pre class="lines">
818
816
 
819
817
 
820
- 95
821
- 96
822
- 97</pre>
818
+ 93
819
+ 94
820
+ 95</pre>
823
821
  </td>
824
822
  <td>
825
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 95</span>
823
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 93</span>
826
824
 
827
825
  <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>
828
826
  <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>
@@ -858,12 +856,12 @@
858
856
  <pre class="lines">
859
857
 
860
858
 
861
- 90
862
- 91
863
- 92</pre>
859
+ 88
860
+ 89
861
+ 90</pre>
864
862
  </td>
865
863
  <td>
866
- <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 90</span>
864
+ <pre class="code"><span class="info file"># File 'lib/gqli/introspection.rb', line 88</span>
867
865
 
868
866
  <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>
869
867
  <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>
@@ -878,9 +876,9 @@
878
876
  </div>
879
877
 
880
878
  <div id="footer">
881
- Generated on Sat Feb 16 22:53:59 2019 by
879
+ Generated on Mon Jan 3 17:37:12 2022 by
882
880
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
883
- 0.9.16 (ruby-2.5.3).
881
+ 0.9.27 (ruby-3.0.3).
884
882
  </div>
885
883
 
886
884
  </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::Mutation
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::Mutation";
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 (M)</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">Mutation</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::Mutation
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::Mutation</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/mutation.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Mutation 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/mutation.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/mutation.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'> mutation </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/mutation.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>