Module: GraphQL::Groups::HasGroups
- Included in:
- Schema::GroupType
- Defined in:
- lib/graphql/groups/has_groups.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
10 11 12 |
# File 'lib/graphql/groups/has_groups.rb', line 10 def scope @scope end |
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'lib/graphql/groups/has_groups.rb', line 6 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(object, context) ⇒ Object
12 13 14 15 |
# File 'lib/graphql/groups/has_groups.rb', line 12 def initialize(object, context) super(object, context) @scope = instance_eval(&self.class.class_scope) end |