Class: Types::AuditEvents::AuditEventType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::AuditEvents::AuditEventType
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
#present, #unpresented
Instance Method Details
#details ⇒ Object
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
|
#group ⇒ Object
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
|
#project ⇒ Object
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
|