Sha256: 780e1ffe6800c3248f925c090f8da1d2bd44d3ccea434935e78b9009336bae64

Contents?: true

Size: 611 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
eco-helpers-2.4.4 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.4.3 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.4.2 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.3.3 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.3.2 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.2.5 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.2.4 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.2.3 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.2.2 lib/eco/api/usecases/graphql/base.rb
eco-helpers-2.2.1 lib/eco/api/usecases/graphql/base.rb