lib/universa/service.rb in universa-0.2.6 vs lib/universa/service.rb in universa-0.3.1
- old
+ new
@@ -13,11 +13,11 @@
# Setup service initial parameters
def initialize
@config = SmartHash.new path: nil
@known_proxies = {}
[Contract, PrivateKey, PublicKey, KeyAddress, HashId, Binder, Role, ChangeOwnerPermission, RevokePermission,
- SplitJoinPermission].each {|klass| register_proxy klass}
+ SplitJoinPermission, UmiClient].each {|klass| register_proxy klass}
end
# Implementation of {Service.configure}
def configure &block
raise Error, "config call must happen before interface creation" if @umi
@@ -80,11 +80,11 @@
#
# Extending this class normally should not implement the constructor, By defaul the constructor is passed to
# the remote to create remote instance.
class RemoteAdapter < Delegator
- # Instantiate new proxy object passing arguments to the remote constructor. The UMO host will try
- # ot find overloaded constructor that matches the arguments.
+ # Instantiate new proxy object passing arguments to the remote constructor. The UMI host will try
+ # to find overloaded constructor that matches the arguments.
#
# @param [*Any] args any arguments that remote constructor may accept.
def initialize(*args)
if args.length == 1 && args[0].is_a?(ReferenceCreationData)
@remote = args[0].ref