Class MCollective::RPC::Reply
In: lib/mcollective/rpc/reply.rb
Parent: Object

Simple class to manage compliant replies to MCollective::RPC

Methods

[]   []=   fail   fail!   fetch   initialize_data   new   to_hash  

Attributes

data  [RW] 
statuscode  [RW] 
statusmsg  [RW] 

Public Class methods

Public Instance methods

Read from the data hash

Write to the data hash

Helper to fill in statusmsg and code on failure

Helper that fills in statusmsg and code but also raises an appropriate error

Returns a compliant Hash of the reply that should be sent over the middleware

[Validate]