Sha256: 82c77cd35082f3b001baaa8ae2e1ea044f3bcd614bbabcd60909a3e959e33b38

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

# encoding: utf-8

require 'libis/tools/extend/hash'
require_relative 'client'
require_relative 'sip'
require_relative 'ie'

module Libis
  module Services
    module Rosetta

      class SipHandler < Libis::Services::Rosetta::Client

        def initialize(base_url = 'https://repository.teneo.libis.be', options = {})
          super 'repository', 'SipWebServices', {url: base_url}.merge(options)
        end

        def get_info(sip_id)
          request_object :get_sip_status_info, Rosetta::Sip, arg0: sip_id
        end

        def get_ies(sip_id)
          request_array(:get_sip_i_es, arg0: sip_id).map {|ie| Rosetta::Ie.new(pid: ie)}

        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libis-services-1.1.0 lib/libis/services/rosetta/sip_handler.rb
libis-services-1.0.13 lib/libis/services/rosetta/sip_handler.rb
libis-services-1.0.12 lib/libis/services/rosetta/sip_handler.rb
libis-services-1.0.11 lib/libis/services/rosetta/sip_handler.rb