Class: Dreamy::AnnounceList
- Inherits:
-
Object
- Object
- Dreamy::AnnounceList
- Includes:
- EasyClassMaker
- Defined in:
- lib/dreamy/announce_list.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 16 17 |
# File 'lib/dreamy/announce_list.rb', line 7 def self.new_from_xml(xml) l = new l.account_id = (xml).at('account_id').innerHTML.to_i l.short_name = (xml).at('listname').innerHTML l.domain = (xml).at('domain').innerHTML l.name = (xml).at('name').innerHTML l.start_date = (xml).at('start_date').innerHTML l.max_bounces = (xml).at('max_bounces').innerHTML.to_i l.subscribers = (xml).at('num_subscribers').innerHTML.to_i l end |