Sha256: c53b452ea683d3ec125a2a32701f1ff8f024c919bb6560ede87e8b8dd6b6879d
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 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.2.2 | lib/dreamy/subscriber.rb |
sant0sk1-dreamy-0.2.3 | lib/dreamy/subscriber.rb |
sant0sk1-dreamy-0.2.4 | lib/dreamy/subscriber.rb |