Class: GraphQLIncludable::ConnectionEdgesIncludesBuilder
- Inherits:
-
Object
- Object
- GraphQLIncludable::ConnectionEdgesIncludesBuilder
- Defined in:
- lib/graphql_includable/includes_builder.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
readonly
Returns the value of attribute builder.
-
#node_builder ⇒ Object
readonly
Returns the value of attribute node_builder.
Instance Method Summary collapse
- #includes? ⇒ Boolean
-
#initialize ⇒ ConnectionEdgesIncludesBuilder
constructor
A new instance of ConnectionEdgesIncludesBuilder.
- #node(*symbols, &block) ⇒ Object
- #path(*symbols, &block) ⇒ Object
- #sibling_path(*symbols, &block) ⇒ Object
Constructor Details
#initialize ⇒ ConnectionEdgesIncludesBuilder
Returns a new instance of ConnectionEdgesIncludesBuilder.
87 88 89 90 |
# File 'lib/graphql_includable/includes_builder.rb', line 87 def initialize @builder = IncludesBuilder.new @node_builder = IncludesBuilder.new end |
Instance Attribute Details
#builder ⇒ Object (readonly)
Returns the value of attribute builder.
85 86 87 |
# File 'lib/graphql_includable/includes_builder.rb', line 85 def builder @builder end |
#node_builder ⇒ Object (readonly)
Returns the value of attribute node_builder.
85 86 87 |
# File 'lib/graphql_includable/includes_builder.rb', line 85 def node_builder @node_builder end |
Instance Method Details
#includes? ⇒ Boolean
92 93 94 |
# File 'lib/graphql_includable/includes_builder.rb', line 92 def includes? @builder.includes? && @node_builder.includes? end |
#node(*symbols, &block) ⇒ Object
104 105 106 |
# File 'lib/graphql_includable/includes_builder.rb', line 104 def node(*symbols, &block) @node_builder.path(*symbols, &block) end |
#path(*symbols, &block) ⇒ Object
96 97 98 |
# File 'lib/graphql_includable/includes_builder.rb', line 96 def path(*symbols, &block) @builder.path(*symbols, &block) end |
#sibling_path(*symbols, &block) ⇒ Object
100 101 102 |
# File 'lib/graphql_includable/includes_builder.rb', line 100 def sibling_path(*symbols, &block) @builder.sibling_path(*symbols, &block) end |