Class: O3D3XX::DeviceProxy
- Inherits:
-
XmlRPCBase
- Object
- XmlRPCBase
- O3D3XX::DeviceProxy
- Defined in:
- lib/o3d3xx/xmlrpc.rb
Overview
This class encapsulates the XML-RPC device access
Instance Attribute Summary
Attributes inherited from XmlRPCBase
Instance Method Summary collapse
- #getNetworkProxy ⇒ Object
-
#initialize(proxy) ⇒ DeviceProxy
constructor
A new instance of DeviceProxy.
Methods inherited from XmlRPCBase
#dump, #getConfig, #method_missing
Constructor Details
#initialize(proxy) ⇒ DeviceProxy
Returns a new instance of DeviceProxy.
69 70 71 72 73 74 |
# File 'lib/o3d3xx/xmlrpc.rb', line 69 def initialize(proxy) config = proxy.getConfig() path = "com.ifm.efector/session_#{proxy.getSessionID()}/edit/device/" super(:host => config[:host], :port => config[:port], :path => path) @net_proxy = O3D3xx::NetworkProxy.new(proxy) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class XmlRPCBase
Instance Method Details
#getNetworkProxy ⇒ Object
76 77 78 |
# File 'lib/o3d3xx/xmlrpc.rb', line 76 def getNetworkProxy() @net_proxy end |