Sha256: cccae47922afe9a1a6be3983e49b3556619211f860c4de5e109069a86627be69
Contents?: true
Size: 347 Bytes
Versions: 6
Compression:
Stored size: 347 Bytes
Contents
module Dreamy class MysqlHost include EasyClassMaker attributes :account_id, :domain, :home 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 end end
Version data entries
6 entries across 6 versions & 3 rubygems