Class: Libis::Services::Alma::WebService

Inherits:
Object
  • Object
show all
Includes:
RestClient
Defined in:
lib/libis/services/alma/web_service.rb

Instance Attribute Summary

Attributes included from RestClient

#client

Instance Method Summary collapse

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