Class: Dreamy::Subscriber
- Inherits:
-
Object
- Object
- Dreamy::Subscriber
- Includes:
- EasyClassMaker
- Defined in:
- lib/dreamy/subscriber.rb
Class Method Summary collapse
Methods included from EasyClassMaker
Class Method Details
.new_from_xml(xml) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/dreamy/subscriber.rb', line 7 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 |