Sha256: 84ff5655be5432a2027f86d41a17e9ad7dd43bb11e5f54b5b5195b80efd28e71
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 Bytes
Contents
module Dreamy class Dns include EasyClassMaker attributes :account_id, :comment, :editable, :record, :type, :value, :zone def self.new_from_xml(xml) d = new d.account_id = (xml).at('account_id').innerHTML d.comment = (xml).at('comment').innerHTML # TODO - enable this if DH guys change the API as requested # d.editable = (xml).at('editable').innerHTML d.record = (xml).at('record').innerHTML d.type = (xml).at('type').innerHTML d.value = (xml).at('value').innerHTML d.zone = (xml).at('zone').innerHTML d end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sant0sk1-dreamy-0.1.1 | lib/dreamy/dns.rb |
sant0sk1-dreamy-0.1.2 | lib/dreamy/dns.rb |
sant0sk1-dreamy-0.2.0 | lib/dreamy/dns.rb |
sant0sk1-dreamy-0.2.1 | lib/dreamy/dns.rb |