Class: Dreamy::MysqlHost
- Inherits:
-
Object
- Object
- Dreamy::MysqlHost
- Includes:
- EasyClassMaker
- Defined in:
- lib/dreamy/mysql/host.rb
Class Method Summary collapse
Methods included from EasyClassMaker
Class Method Details
.new_from_xml(xml) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/dreamy/mysql/host.rb', line 7 def self.new_from_xml(xml) host = new host.account_id = (xml).at('account_id').innerHTML.to_i host.domain = (xml).at('domain').innerHTML host.home = (xml).at('home').innerHTML host end |