Sha256: 8039f22e815c57c6e6e02b1c3a507bc92b21e11fe0eac178ef3b60eaffeb1bb2
Contents?: true
Size: 657 Bytes
Versions: 23
Compression:
Stored size: 657 Bytes
Contents
module Fog module Parsers module DNS module Zerigo class FindHosts < Fog::Parsers::Base def reset @host = {} @response = { 'hosts' => [] } end def end_element(name) case name when 'id', 'priority', 'ttl', 'zone-id' @host[name] = value.to_i when 'data', 'fqdn', 'host-type', 'hostname', 'notes', 'zone-id', 'created-at', 'updated-at' @host[name] = value when 'host' @response['hosts'] << @host @host = {} end end end end end end end
Version data entries
23 entries across 23 versions & 5 rubygems