Class: Ecoportal::API::GraphQL::Base::AuthorizationResult

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

Overview

AuthorizationResult — the result of a permission / ability check (a canXXX field). value: Boolean! — whether the action is allowed message: String — human-readable reason when denied reasons: FailureReasons — structured reasons (not modelled here; omitted from the :AuthorizationResult fragment to avoid pulling that subtree). Reusable node type behind the schema's many canXXX: AuthorizationResult fields.

Direct Known Subclasses

Model::AuthorizationResult

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