Sha256: 3cb984830c39da26dd8f029d137b991e44ab7614861984fa72beaac57ec4157b

Contents?: true

Size: 593 Bytes

Versions: 27

Compression:

Stored size: 593 Bytes

Contents

# encoding: utf-8
require 'virtus'

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

module Libis
  module Services
    module Rosetta

      class UserManager < Libis::Services::Rosetta::Client

        def initialize(base_url = 'http://depot.lias.be', options = {})
          super 'infra', 'UserManagerWS', {url: base_url}.merge(options)
        end

        def user(user_id, user_info)
          user_info = user_info.to_hash if user_info.is_a? User
          do_request :update_user, arg0: user_info, arg1: user_id
        end

        protected

      end

    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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