Sha256: 3367a434a3ebf0ecb7e1ae51c2d4553cf1176f5783302acb2ac382ffd9370a78

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

module Dreamy
  class MailFilter
    include EasyClassMaker

    attributes	:account_id, :address, :rank, :filter, :filter_on, :action_value, :action, :contains, :stop

    def self.new_from_xml(xml)
      f = new
      f.account_id        = (xml).at('account_id').innerHTML.to_i
      f.address           = (xml).at('address').innerHTML
      f.rank              = (xml).at('rank').innerHTML.to_i
      f.filter            = (xml).at('filter').innerHTML
      f.filter_on         = (xml).at('filter_on').innerHTML
      f.action            = (xml).at('action').innerHTML
      f.action_value      = (xml).at('action_value').innerHTML
      f.contains          = (xml).at('contains').innerHTML
      f.stop              = (xml).at('stop').innerHTML
      f
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dreamy-0.5.3 lib/dreamy/mail_filter.rb