Class: Ecoportal::API::GraphQL::Base::ActivityLog

Inherits:
Logic::BaseModel show all
Defined in:
lib/ecoportal/api/graphql/base/activity_log.rb

Overview

A single "System Access Log" entry, returned by currentOrganization.activityLogs (ActivityLogUnionConnection). Read-only.

ActivityLogUnion is a UNION over 9 members:

DashboardAccess, DashboardCreate, DashboardDelete, DashboardUpdate,
DeniedDashboardAccess, DeniedPageAccess, FileDownload, PageAccess,
ScimIntegrationAccess.

This models the field set COMMON to ALL members and passes the concrete __typename through. The Dashboard* members additionally expose parentResource* + resource (see Model::ActivityLog); page/file/scim members do not, so those live on the Model subclass as nullable embeds.

Enum-valued fields are exposed as plain strings:

  • resourceType: ResourceTypesEnum

Direct Known Subclasses

Model::ActivityLog

Constant Summary

Constants included from Common::GraphQL::Model::Diffable

Common::GraphQL::Model::Diffable::DIFF_CLASS

Method Summary

Methods included from Concerns::SnakeCamelAccess

#method_missing, #respond_to_missing?

Methods included from Common::GraphQL::Model::AsInput

#as_input, included

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

Methods included from Common::GraphQL::ClassHelpers

included

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ecoportal::API::GraphQL::Concerns::SnakeCamelAccess