Class: O3D3XX::O3D3xxProxy
- Inherits:
-
XmlRPCBase
- Object
- XmlRPCBase
- O3D3XX::O3D3xxProxy
- Defined in:
- lib/o3d3xx/xmlrpc.rb
Overview
This class encapsulates the XML-RPC general o3d3xx access
Instance Attribute Summary
Attributes inherited from XmlRPCBase
Instance Method Summary collapse
- #closeSession ⇒ Object
- #getSessionID ⇒ Object
- #getSessionProxy(*args) ⇒ Object
-
#initialize(host = '192.168.0.69', port = 80) ⇒ O3D3xxProxy
constructor
A new instance of O3D3xxProxy.
Methods inherited from XmlRPCBase
#dump, #getConfig, #method_missing
Constructor Details
#initialize(host = '192.168.0.69', port = 80) ⇒ O3D3xxProxy
Returns a new instance of O3D3xxProxy.
141 142 143 144 |
# File 'lib/o3d3xx/xmlrpc.rb', line 141 def initialize(host='192.168.0.69', port=80) super(:host => host, :port => port, :path => 'com.ifm.efector/') @session = nil end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class XmlRPCBase
Instance Method Details
#closeSession ⇒ Object
150 151 152 153 154 |
# File 'lib/o3d3xx/xmlrpc.rb', line 150 def closeSession() @session_id = nil @session.cancelSession() unless @session == nil @session = nil end |
#getSessionID ⇒ Object
156 157 158 |
# File 'lib/o3d3xx/xmlrpc.rb', line 156 def getSessionID return @session_id end |
#getSessionProxy(*args) ⇒ Object
146 147 148 149 |
# File 'lib/o3d3xx/xmlrpc.rb', line 146 def getSessionProxy(*args) @session_id = requestSession(*args) @session = O3D3xx::SessionProxy.new(self) end |