Sha256: 03fe500e7d0f302f58f0c9ee630af4d1e62f4f88c2cd7f54f85ae4af71e8c80d

Contents?: true

Size: 589 Bytes

Versions: 13

Compression:

Stored size: 589 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

  def main(session, options, usecase)
    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
    raise NotImplementedMethod, "You need to inherit from this class ('#{self.class}') and call super with a block"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eco-helpers-2.6.4 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.6.3 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.6.2 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.6.1 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.6.0 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.10 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.9 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.8 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.7 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.6 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.5 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.4 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.5.3 lib/eco/api/usecases/graphql/base.rb