def set_parameters(parameters) #:nodoc:
      @from       = parameters[:from]
      @to         = parameters[:to]
      @message    = parameters[:message]
      @message_id = parameters[:id]
      @created_at = Time.parse(parameters[:created]) if parameters[:created]
      @loaded_at  = Time.now
      @direction  = parameters[:direction]
      @status     = parameters[:status]
      @client     = parameters.fetch(:client) { Elk.client }
    end
def set_parameters(parameters) #:nodoc:
      @from       = parameters[:from]
      @to         = parameters[:to]
      @message    = parameters[:message]
      @message_id = parameters[:id]
      @created_at = Time.parse(parameters[:created]) if parameters[:created]
      @loaded_at  = Time.now
      @direction  = parameters[:direction]
      @status     = parameters[:status]
      @client     = parameters.fetch(:client) { Elk.client }
    end
:nodoc: