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