Class: Ecoportal::API::GraphQL::Base::AuthorizationResult
- Inherits:
-
Logic::BaseModel
- Object
- Common::Content::DoubleModel
- Common::GraphQL::Model
- Logic::BaseModel
- Ecoportal::API::GraphQL::Base::AuthorizationResult
- 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
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
Methods included from Common::GraphQL::Model::Diffable
Methods included from Common::GraphQL::ClassHelpers
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ecoportal::API::GraphQL::Concerns::SnakeCamelAccess