Class: GraphQL::Analysis::AST::QueryComplexity::ConcreteTypeComplexity
- Inherits:
-
Object
- Object
- GraphQL::Analysis::AST::QueryComplexity::ConcreteTypeComplexity
- Defined in:
- lib/graphql/analysis/ast/query_complexity.rb
Instance Attribute Summary collapse
-
#max_possible_complexity ⇒ Object
readonly
Returns the value of attribute max_possible_complexity.
Instance Method Summary collapse
-
#initialize ⇒ ConcreteTypeComplexity
constructor
A new instance of ConcreteTypeComplexity.
-
#merge(complexity) ⇒ Object
Constructor Details
#initialize ⇒ ConcreteTypeComplexity
Returns a new instance of ConcreteTypeComplexity
120 121 122 |
# File 'lib/graphql/analysis/ast/query_complexity.rb', line 120 def initialize @max_possible_complexity = 0 end |
Instance Attribute Details
#max_possible_complexity ⇒ Object (readonly)
Returns the value of attribute max_possible_complexity
118 119 120 |
# File 'lib/graphql/analysis/ast/query_complexity.rb', line 118 def max_possible_complexity @max_possible_complexity end |
Instance Method Details
#merge(complexity) ⇒ Object
124 125 126 |
# File 'lib/graphql/analysis/ast/query_complexity.rb', line 124 def merge(complexity) @max_possible_complexity += complexity end |