Class: Evergreen
- Inherits:
-
Object
- Object
- Evergreen
- Defined in:
- lib/evergreen.rb,
lib/evergreen/idl.rb,
lib/evergreen/version.rb,
lib/evergreen/bib_record.rb,
lib/evergreen/connection.rb,
lib/evergreen/idl_object.rb,
lib/evergreen/configuration.rb,
lib/evergreen/mixins/anonymous_pcrud.rb,
lib/evergreen/mixins/retrieval_methods.rb
Overview
The main class provided by this gem
Defined Under Namespace
Modules: Mixins Classes: BibRecord, Configuration, Connection, ConnectionError, IDL, IDLObject
Constant Summary collapse
- VERSION =
'0.2.0'
Instance Method Summary collapse
-
#initialize(config_hash) {|connection| ... } ⇒ Evergreen
constructor
A new instance of Evergreen.
Constructor Details
#initialize(config_hash) {|connection| ... } ⇒ Evergreen
Returns a new instance of Evergreen.
16 17 18 19 20 |
# File 'lib/evergreen.rb', line 16 def initialize(config_hash) connection = Connection.new(configuration: Configuration.new(config_hash)) yield connection connection.close end |