# File lib/qbxml/response.rb, line 45
    def append_from_hash(hsh)
      to_append = []
      hsh = hsh['QBXML'] if hsh.has_key?('QBXML')
      hsh = hsh['QBXMLMsgsRs'] if hsh.has_key?('QBXMLMsgsRs')
      # responses will contain one or more keys.
      hsh.each_key do |name|
        # response_type is either a single response object, or an array of response objects. Force it into an array:
        responses = hsh[name].is_a?(Array) ? hsh[name] : [hsh[name]]
        responses.each { |response| to_append << Response.new(name => response) }
      end
      self << to_append
    end