Class: Ecoportal::API::GraphQL::Payload::OkPayload
- Inherits:
-
Logic::BaseModel
- Object
- Common::Content::DoubleModel
- Common::GraphQL::Model
- Logic::BaseModel
- Ecoportal::API::GraphQL::Payload::OkPayload
- Defined in:
- lib/ecoportal/api/graphql/payload/ok_payload.rb
Overview
Payload for mutations that return { ok: Boolean, errors } instead of an item. Used by: submitAiSummaryFeedback, smartFillGenerate, smartFillSubmitFeedback.
Constant Summary
Constants included from Common::GraphQL::Model::Diffable
Common::GraphQL::Model::Diffable::DIFF_CLASS
Instance Method Summary collapse
Methods included from Concerns::SnakeCamelAccess
#method_missing, #respond_to_missing?
Methods included from Common::GraphQL::Model::AsInput
Methods included from Common::GraphQL::Model::Diffable
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ecoportal::API::GraphQL::Concerns::SnakeCamelAccess
Instance Method Details
#error? ⇒ Boolean
14 15 16 |
# File 'lib/ecoportal/api/graphql/payload/ok_payload.rb', line 14 def error? !success? end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/ecoportal/api/graphql/payload/ok_payload.rb', line 10 def success? !!ok end |