Class: Libis::Services::Alma::WebService
- Inherits:
-
Object
- Object
- Libis::Services::Alma::WebService
- Includes:
- RestClient
- Defined in:
- lib/libis/services/alma/web_service.rb
Instance Attribute Summary
Attributes included from RestClient
Instance Method Summary collapse
- #get_marc(alma_id, apikey = nil) ⇒ Object
-
#initialize(url = 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/bibs') ⇒ WebService
constructor
A new instance of WebService.
Methods included from RestClient
#configure, #get, #post_data, #post_url, #put_data, #put_url
Constructor Details
#initialize(url = 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/bibs') ⇒ WebService
Returns a new instance of WebService.
13 14 15 |
# File 'lib/libis/services/alma/web_service.rb', line 13 def initialize(url = 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/bibs') configure(url) end |
Instance Method Details
#get_marc(alma_id, apikey = nil) ⇒ Object
17 18 19 |
# File 'lib/libis/services/alma/web_service.rb', line 17 def get_marc(alma_id, apikey = nil) get alma_id, apikey: apikey end |