Class: Types::Ci::StatusActionType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ci/status_action_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#action_methodObject


28
29
30
# File 'app/graphql/types/ci/status_action_type.rb', line 28

def action_method
  object[:method]
end

#id(parent:) ⇒ Object


23
24
25
26
# File 'app/graphql/types/ci/status_action_type.rb', line 23

def id(parent:)
  # parent is a SimpleDelegator
  "#{parent.subject.class.name}-#{parent.id}"
end