def write message=''
      response = self.class.write message, @params
      message = response['message']
      response.keep_if { |key, value| DEFAULT_PARAMS.keys.include? key }
      @params.merge! response
      @params.delete_if { |key, value| DEFAULT_PARAMS[key] == value }
      message
    end
def write message=''
      response = self.class.write message, @params
      message = response['message']
      response.keep_if { |key, value| DEFAULT_PARAMS.keys.include? key }
      @params.merge! response
      @params.delete_if { |key, value| DEFAULT_PARAMS[key] == value }
      message
    end
Initializes a Client with given parameters.

 ==== Parameters

 [<tt>params</tt>] Optional <tt>Hash</tt> holding the initial parameters. Defaults to <tt>{}</tt>.
 Sends a message and returns a <tt>String</tt> with the message received. Updates #params to maintain state.

 ==== Parameters

 [<tt>message</tt>] Optional <tt>String</tt> holding the message to be sent. Defaults to <tt>''</tt>.