Class: Celsius::Primo::Adapter
- Inherits:
-
Adapter
- Object
- Adapter
- Celsius::Primo::Adapter
- Defined in:
- lib/celsius/primo/adapter.rb
Defined Under Namespace
Classes: Mget, Operation, Search
Instance Attribute Summary collapse
-
#institution ⇒ Object
Returns the value of attribute institution.
-
#languages ⇒ Object
Returns the value of attribute languages.
-
#locations ⇒ Object
Returns the value of attribute locations.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Adapter
constructor
A new instance of Adapter.
- #mget(*args) ⇒ Object
- #search(*args) ⇒ Object
- #soap_api ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Adapter
Returns a new instance of Adapter.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/celsius/primo/adapter.rb', line 15 def initialize( = {}) super # e.g. load super class locales # add adapter specific locales (see Celsius::I18n) self.class.load_locales_from_directory("#{File.dirname(__FILE__)}/locales") # ease options processing by eleminating all symbols = deep_stringify() # check for required options raise ArgumentError, "soap_api_options are needed!" unless ["soap_api_options"] @institution = ["institution"] @languages = ["languages"] @locations = ["locations"] @soap_api_options = ["soap_api_options"] @timeout = ["timeout"] end |
Instance Attribute Details
#institution ⇒ Object
Returns the value of attribute institution.
10 11 12 |
# File 'lib/celsius/primo/adapter.rb', line 10 def institution @institution end |
#languages ⇒ Object
Returns the value of attribute languages.
11 12 13 |
# File 'lib/celsius/primo/adapter.rb', line 11 def languages @languages end |
#locations ⇒ Object
Returns the value of attribute locations.
12 13 14 |
# File 'lib/celsius/primo/adapter.rb', line 12 def locations @locations end |
#timeout ⇒ Object
Returns the value of attribute timeout.
13 14 15 |
# File 'lib/celsius/primo/adapter.rb', line 13 def timeout @timeout end |