Class: Evergreen::Connection

Inherits:
Object
  • Object
show all
Includes:
Mixins::RetrievalMethods
Defined in:
lib/evergreen/connection.rb

Overview

This class provides an interface for making requests to the Evergreen server

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins::RetrievalMethods

#get_bib_record

Constructor Details

#initialize(configuration:) ⇒ Connection

Returns a new instance of Connection.



10
11
12
# File 'lib/evergreen/connection.rb', line 10

def initialize(configuration:)
  @configuration = configuration
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



8
9
10
# File 'lib/evergreen/connection.rb', line 8

def configuration
  @configuration
end

Instance Method Details

#closeObject



14
# File 'lib/evergreen/connection.rb', line 14

def close; end

#idlObject



16
17
18
# File 'lib/evergreen/connection.rb', line 16

def idl
  @idl ||= IDL.new(@configuration)
end