Class: Dreamy::MysqlHost

Inherits:
Object
  • Object
show all
Includes:
EasyClassMaker
Defined in:
lib/dreamy/mysql/host.rb

Class Method Summary collapse

Methods included from EasyClassMaker

included, #initialize

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. = (xml).at('account_id').innerHTML.to_i
  host.domain     = (xml).at('domain').innerHTML
  host.home       = (xml).at('home').innerHTML
  host
end