Sha256: eaa199b01438e678f38f8d30e0f2ece3c66fe7054af4e928b0268b5d475e4ad5

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 Bytes

Contents

module Dreamy
  class Subscriber
    include EasyClassMaker

    attributes  :email, :confirmed, :subscribe_date, :name, :num_bounces

    def self.new_from_xml(xml)
      s = new
      s.email           = (xml).at('email').innerHTML
      # s.confirmed       = (xml).at('confirmed').innerHTML
      s.subscribe_date  = (xml).at('subscribe_date').innerHTML
      s.name            = (xml).at('name').innerHTML
      s.num_bounces     = (xml).at('num_bounces').innerHTML
      s
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sant0sk1-dreamy-0.1.2 lib/dreamy/subscriber.rb
sant0sk1-dreamy-0.2.0 lib/dreamy/subscriber.rb
sant0sk1-dreamy-0.2.1 lib/dreamy/subscriber.rb