Class: Gitlab::Graphql::KnownOperations::Operation

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/graphql/known_operations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/gitlab/graphql/known_operations.rb', line 6

def name
  @name
end

Instance Method Details

#query_urgencyObject



11
12
13
14
# File 'lib/gitlab/graphql/known_operations.rb', line 11

def query_urgency
  # We'll be able to actually correlate query_urgency with https://gitlab.com/gitlab-org/gitlab/-/issues/345141
  ::Gitlab::EndpointAttributes::DEFAULT_URGENCY
end

#to_caller_idObject



7
8
9
# File 'lib/gitlab/graphql/known_operations.rb', line 7

def to_caller_id
  "graphql:#{name}"
end