Class: Ecoportal::API::GraphQL::Base::Activity

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

Overview

A single entry of a page's activity/history feed, returned by page.activities (ActivityInterfaceConnection). Read-only.

ActivityInterface is an INTERFACE with ~61 concrete implementations (ActivityPageChangelog, ActivityComment, ActivityStageAssigned, ActivityCreated, ActivityEmailOut, ActivityFallback, ...). Rather than hand-model all of them, this captures the fields COMMON to the interface and passes the concrete __typename through so callers can branch on it.

Enum-valued fields are exposed as plain strings:

  • priority: PriorityEnum

Direct Known Subclasses

Model::Activity

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