Sha256: 61d5a4f9dd5e5220fcc32f01eae1fb4acd1212f302a22d5ecd7c96ffae8f972d
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
require 'singleton' module Universign class Client include ::Singleton attr_reader :client def initialize @client = XMLRPC::Client.new2( Universign.configuration.endpoint, Universign.configuration.proxy, Universign.configuration.timeout ) @client.user = Universign.configuration.login @client.password = Universign.configuration.password end def method_missing(method, *args, &block) if @client.respond_to?(method) @client.send(method, *args, &block) else super(method, *args, &block) end end # _ _ # _____ _____ ___ _ __ | |_(_) ___ _ __ ___ # / _ \ \/ / __/ _ \ '_ \| __| |/ _ \| '_ \/ __| # | __/> < (_| __/ |_) | |_| | (_) | | | \__ \ # \___/_/\_\___\___| .__/ \__|_|\___/|_| |_|___/ # |_| class InvalidCredentials < StandardError; end class ErrorWhenSigningPDF < StandardError; end class UnknownException < StandardError; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_universign-1.3.1 | lib/universign/client.rb |