Class: Types::CustomerRelations::OrganizationStateCountsType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/customer_relations/organization_state_counts_type.rb

Overview

‘object` is a hash. Authorization is performed by OrganizationStateCountsResolver

Constant Summary collapse

AVAILABLE_STATES =
::CustomerRelations::Organization.states.keys.push('all').freeze

Instance Method Summary collapse

Methods inherited from BaseObject

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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#allObject



19
20
21
# File 'app/graphql/types/customer_relations/organization_state_counts_type.rb', line 19

def all
  object.values.sum
end