Class: Types::Ci::AnalyticsPeriodType

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

Overview

rubocop: disable Graphql/AuthorizeTypes – this type is authorized by the resolver

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

#count(status:) ⇒ Object



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

def count(status:)
  object[:count].fetch(status, 0)
end