Method: QRPC::Client::Job#serialize

Defined in:
lib/qrpc/client/job.rb

#serializeObject

Serializes job using serializer.

Returns:

  • (Object)

    serialized object

Since:

  • 0.4.0



141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/qrpc/client/job.rb', line 141

def serialize
    options = {
        :client_id => @client_id,
        :id => @id,
        :method => @method,
        :arguments => @arguments,
        :priority => @priority,
        :notification => self.notification?
    }
    
    @protocol.request::new(options).serialize
end