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