Class: Ecoportal::API::GraphQL::Base::PagesWorkflow::CommandInterface
- Inherits:
-
Logic::BaseModel
- Object
- Common::Content::DoubleModel
- Common::GraphQL::Model
- Logic::BaseModel
- Ecoportal::API::GraphQL::Base::PagesWorkflow::CommandInterface
- Defined in:
- lib/ecoportal/api/graphql/base/pages_workflow/command_interface.rb
Direct Known Subclasses
Constant Summary collapse
- SCHEMA_VERSION =
'20260605'.freeze
Constants included from Common::GraphQL::Model::Diffable
Common::GraphQL::Model::Diffable::DIFF_CLASS
Class 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
Class Method Details
.from_doc(raw_doc) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ecoportal/api/graphql/base/pages_workflow/command_interface.rb', line 19 def self.from_doc(raw_doc) case raw_doc&.fetch('__typename', nil) when 'PagesWorkflowCommandChange' CommandChange.new(raw_doc) when 'PagesWorkflowCommandChangeMessage' CommandChangeMessage.new(raw_doc) when 'PagesWorkflowCommandEsChange' CommandEsChange.new(raw_doc) else new(raw_doc) end end |