Sha256: 735fb71ca2c97960a910db805a0d4ec86612eb6ad0025ba0dea460ba48301de6

Contents?: true

Size: 503 Bytes

Versions: 8

Compression:

Stored size: 503 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.to_i
      s.subscribe_date  = (xml).at('subscribe_date').innerHTML
      s.name            = (xml).at('name').innerHTML
      s.num_bounces     = (xml).at('num_bounces').innerHTML.to_i
      s
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
jordan-brough-dreamy-0.5.1 lib/dreamy/subscriber.rb
sant0sk1-dreamy-0.3.0 lib/dreamy/subscriber.rb
sant0sk1-dreamy-0.4.1 lib/dreamy/subscriber.rb
sant0sk1-dreamy-0.5.0 lib/dreamy/subscriber.rb
sant0sk1-dreamy-0.5.1 lib/dreamy/subscriber.rb
dreamy-0.5.3 lib/dreamy/subscriber.rb
dreamy-0.5.2 lib/dreamy/subscriber.rb
dreamy-0.5.1 lib/dreamy/subscriber.rb