Class: Types::AuditEvents::AuditEventType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/audit_events/audit_event_type.rb

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

#detailsObject



55
56
57
58
59
# File 'app/graphql/types/audit_events/audit_event_type.rb', line 55

def details
  return unless object.details

  object.details.to_json
end

#groupObject



61
62
63
# File 'app/graphql/types/audit_events/audit_event_type.rb', line 61

def group
  object.group if object.respond_to?(:group)
end

#projectObject



65
66
67
# File 'app/graphql/types/audit_events/audit_event_type.rb', line 65

def project
  object.project if object.respond_to?(:project)
end