Class: GraphQL::Query::NullContext
- Inherits:
-
Object
- Object
- GraphQL::Query::NullContext
- Extended by:
- Delegate
- Defined in:
- lib/graphql/query/null_context.rb
Overview
This object can be ctx
in places where there is no query
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#warden ⇒ Object
readonly
Returns the value of attribute warden.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ NullContext
constructor
A new instance of NullContext.
Methods included from Delegate
Constructor Details
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
6 7 8 |
# File 'lib/graphql/query/null_context.rb', line 6 def query @query end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
6 7 8 |
# File 'lib/graphql/query/null_context.rb', line 6 def schema @schema end |
#warden ⇒ Object (readonly)
Returns the value of attribute warden.
6 7 8 |
# File 'lib/graphql/query/null_context.rb', line 6 def warden @warden end |
Class Method Details
.instance ⇒ Object
21 22 23 |
# File 'lib/graphql/query/null_context.rb', line 21 def instance @instance = self.new end |