# Copyright © 2007 Chris Guidry # # This file is part of OFX for Ruby. # # OFX for Ruby is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # OFX for Ruby is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . module OFX class EmailMessageSet < MessageSet end class EmailMessageSetProfile < MessageSetProfile def self.from_ofx_102_hash(message_set_description_hash) profile = OFX::EmailMessageSetProfile.new profile.message_set_class = OFX::EmailMessageSet profile.from_ofx_102_hash(message_set_description_hash) profile.supports_email = message_set_description_hash['MAILSUP'] == 'Y' profile.supports_mime_messages = message_set_description_hash['GETMIMESUP'] == 'Y' profile end end end