Class: Ecoportal::API::GraphQL::Base::PagesWorkflow::TriggerInterface

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

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

#as_input

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

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



13
14
15
16
17
18
19
20
# File 'lib/ecoportal/api/graphql/base/pages_workflow/trigger_interface.rb', line 13

def self.from_doc(raw_doc)
  case raw_doc&.fetch('__typename', nil)
  when 'PagesWorkflowTriggersConditionalLogic'
    Triggers::ConditionalLogic.new(raw_doc)
  else
    new(raw_doc)
  end
end