Sha256: b6ef79fa338f8ce80c0f4a2fc67fe3b04c8bd110416fdcda75259fe21f4fc18f

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 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
      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

3 entries across 3 versions & 1 rubygems

Version Path
sant0sk1-dreamy-0.2.2 lib/dreamy/dns.rb
sant0sk1-dreamy-0.2.3 lib/dreamy/dns.rb
sant0sk1-dreamy-0.2.4 lib/dreamy/dns.rb