Sha256: d7c6cdbebc3404feff90f6179c05869f45372b083179cf31ab98e0c13a3ef1b2

Contents?: true

Size: 601 Bytes

Versions: 26

Compression:

Stored size: 601 Bytes

Contents

# coding: utf-8
require 'libis-tools'
require 'libis/services/service_error'
require 'libis/services/rest_client'

module Libis
  module Services
    module Alma

      class WebService
        include ::Libis::Services::RestClient

        def initialize(url = 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/bibs')
          configure(url)
        end

        def get_marc(alma_id, apikey = nil)
          get alma_id, apikey: apikey
        end

        protected

        def result_parser(response)
          Libis::Tools::XmlDocument.parse(response)
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
libis-services-1.1.0 lib/libis/services/alma/web_service.rb
libis-services-1.0.13 lib/libis/services/alma/web_service.rb
libis-services-1.0.12 lib/libis/services/alma/web_service.rb
libis-services-1.0.11 lib/libis/services/alma/web_service.rb
libis-services-1.0.10 lib/libis/services/alma/web_service.rb
libis-services-1.0.7 lib/libis/services/alma/web_service.rb
libis-services-1.0.6 lib/libis/services/alma/web_service.rb
libis-services-1.0.5 lib/libis/services/alma/web_service.rb
libis-services-1.0.2 lib/libis/services/alma/web_service.rb
libis-services-1.0.1 lib/libis/services/alma/web_service.rb
libis-services-1.0.0 lib/libis/services/alma/web_service.rb
libis-services-0.2.1 lib/libis/services/alma/web_service.rb
libis-services-0.2.0 lib/libis/services/alma/web_service.rb
libis-services-0.1.18 lib/libis/services/alma/web_service.rb
libis-services-0.1.17 lib/libis/services/alma/web_service.rb
libis-services-0.1.16 lib/libis/services/alma/web_service.rb
libis-services-0.1.15 lib/libis/services/alma/web_service.rb
libis-services-0.1.14 lib/libis/services/alma/web_service.rb
libis-services-0.1.13 lib/libis/services/alma/web_service.rb
libis-services-0.1.12 lib/libis/services/alma/web_service.rb