Sha256: 6ba5d470976a5630adb6bcf7513cc338bd21ed9aa78923b52c6e48956d6564f3

Contents?: true

Size: 681 Bytes

Versions: 4

Compression:

Stored size: 681 Bytes

Contents

class Eco::API::UseCases::GraphQL::Base < Eco::API::Common::Loaders::UseCase
  class NotImplementedMethod < StandardError
  end

  name "graphql-base"
  type :other

  include Eco::API::UseCases::GraphQL::Helpers::Base
  include Eco::Language::Methods::CallDetector

  def main(_sess, options, _case)
    options.deep_merge!(workflow: {no_email: true}) # prevent the default mailer to quick in
    options[:end_get] = false
    process
  end

  # Write here your script
  def process
    return unless called_via?(Eco::API::UseCases::GraphQL::Base, __method__)
    raise NotImplementedMethod, "You need to inherit from this class ('#{self.class}')"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eco-helpers-2.7.4 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.7.2 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.7.1 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.7.0 lib/eco/api/usecases/graphql/base.rb