Sha256: 57cc28f9a0ae6fbc74bd8337e76b78b3ba2508ebf514e02f8f3db3125cac0647
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true require 'zeitwerk' loader = Zeitwerk::Loader.for_gem loader.inflector.inflect( 'http_translator_request' => 'HTTPTranslatorRequest', 'idl' => 'IDL', 'idl_object' => 'IDLObject', 'opensrf' => 'OpenSRF', 'json' => 'JSON' ) loader.setup # The main class provided by this gem class Evergreen def initialize(config_hash) connection = Connection.new(configuration: Configuration.new(config_hash)) yield connection connection.close end # An error when we can't connect to the Evergreen server class ConnectionError < StandardError; end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evergreen-ils-0.2.0 | lib/evergreen.rb |