Sha256: 377b3b46007caa59089901222965af82c1267c4c4bd22ac46761229ff1532dca

Contents?: true

Size: 674 Bytes

Versions: 26

Compression:

Stored size: 674 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 = 'http://depot.lias.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

26 entries across 26 versions & 1 rubygems

Version Path
libis-services-0.1.5 lib/libis/services/rosetta/sip_handler.rb
libis-services-0.1.3 lib/libis/services/rosetta/sip_handler.rb
libis-services-0.1.2 lib/libis/services/rosetta/sip_handler.rb
libis-services-0.1.1 lib/libis/services/rosetta/sip_handler.rb
libis-services-0.1.0-java lib/libis/services/rosetta/sip_handler.rb
libis-services-0.0.3 lib/libis/services/rosetta/sip_handler.rb