Method: Pod4::NebulousInterface#initialize
- Defined in:
- lib/pod4/nebulous_interface.rb
#initialize(requestObj = nil) ⇒ NebulousInterface
In normal operation, takes no parameters.
For testing purposes you may pass something here. Whatever it is you pass, it must respond to a ‘send` method, take the same parameters as NebulousStomp::Request.new (that is, a target and a message) and return something that behaves like a NebulousStomp::Request. This method will be called instead of creating a NebulousStomp::Request directly.
183 184 185 186 187 188 189 190 191 |
# File 'lib/pod4/nebulous_interface.rb', line 183 def initialize(requestObj=nil) @request_object = requestObj # might as well be a reference @response = nil @response_status = nil @id_fld = self.class.id_fld @id_ai = self.class.id_ai self.class.validate_params end |