class Openplacos::ProxyObject
Attributes
path[R]
Public Class Methods
new(connection_, introspect_)
click to toggle source
Object
abstraction of a ressources Contructed from instrospect Has interfaces
# File lib/openplacos/libclient.rb, line 359 def initialize(connection_, introspect_) @path = introspect_["name"] @interfaces = Hash.new introspect_["interfaces"].each_pair { |name, methods| @interfaces[name]= ProxyObjectInterface.new(connection_, self, name, methods) } end
Public Instance Methods
[](intfname)
click to toggle source
Retrieves an interface of the proxy object (ProxyObjectInterface
instance).
# File lib/openplacos/libclient.rb, line 373 def [](intfname) @interfaces[intfname] end
[]=(intfname, intf)
click to toggle source
Maps the given interface name intfname to the given interface _intf.
# File lib/openplacos/libclient.rb, line 378 def []=(intfname, intf) @interfaces[intfname] = intf end
has_iface?(iface_)
click to toggle source
# File lib/openplacos/libclient.rb, line 382 def has_iface?(iface_) return interfaces.include?(iface_) end
interfaces()
click to toggle source
Returns the interfaces of the object.
# File lib/openplacos/libclient.rb, line 368 def interfaces @interfaces.keys end