Sha256: 0e94e1e87ba194904e1935a4cbd880d01f20c801ad8a8e854568d40c9bc16444

Contents?: true

Size: 610 Bytes

Versions: 14

Compression:

Stored size: 610 Bytes

Contents

class Eco::API::UseCases::GraphQL::Base < Eco::API::Common::Loaders::UseCase
  name "graphql-base"
  type :other

  attr_reader :session, :options, :usecase

  def main(session, options, usecase)
    options[:end_get] = false
    @session = session; @options = options; @usecase = usecase
    process
  end

  # Write here your script
  def process
    raise "You need to inherit from this class ('#{self.class}') and call super with a block"
  end

  def graphql
   @graphql ||= session.api(version: :graphql)
  end

  def exit_error(msg)
    logger.error(msg)
    exit(1)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eco-helpers-2.1.12 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.11 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.10 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.9 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.8 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.7 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.6 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.5 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.4 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.3 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.2 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.1.1 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.0.68 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.0.67 lib/eco/api/usecases/graphql/base.rb