Class: Gitlab::Graphql::KnownOperations::Operation
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::Graphql::KnownOperations::Operation
- Defined in:
- lib/gitlab/graphql/known_operations.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#metadata ⇒ Object
Returns the value of attribute metadata
6 7 8 |
# File 'lib/gitlab/graphql/known_operations.rb', line 6 def @metadata end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/gitlab/graphql/known_operations.rb', line 6 def name @name end |
Instance Method Details
#feature_category ⇒ Object
11 12 13 |
# File 'lib/gitlab/graphql/known_operations.rb', line 11 def feature_category &.dig('feature_category') end |
#query_urgency ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/gitlab/graphql/known_operations.rb', line 15 def query_urgency urgency_name = &.dig('urgency') return ::Gitlab::EndpointAttributes::DEFAULT_URGENCY unless urgency_name ::Gitlab::EndpointAttributes::Config::REQUEST_URGENCIES[urgency_name.to_sym] || ::Gitlab::EndpointAttributes::DEFAULT_URGENCY end |
#to_caller_id ⇒ Object
7 8 9 |
# File 'lib/gitlab/graphql/known_operations.rb', line 7 def to_caller_id "graphql:#{name}" end |