Class: Types::Ci::Catalog::Resources::ComponentType

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

Overview

rubocop: disable Graphql/AuthorizeTypes – Authorization is handled by VersionType

Instance Method Summary collapse

Methods inherited from BaseObject

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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#inputsObject



27
28
29
30
31
# File 'app/graphql/types/ci/catalog/resources/component_type.rb', line 27

def inputs
  object.spec.fetch('inputs', {}).map do |key, value|
    input_hash(key, value)
  end
end