Sha256: 11613d9aa34c5ba059e36b814ddc27e5890e2e9329ec2916f7cd25735009a8c7

Contents?: true

Size: 534 Bytes

Versions: 23

Compression:

Stored size: 534 Bytes

Contents

module Fog
  module Parsers
    module DNS
      module Zerigo

        class GetHost < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'id', 'priority', 'ttl', 'zone-id'
              @response[name] = value.to_i
            when 'data', 'fqdn', 'host-type', 'hostname', 'notes', 'zone-id', 'created-at', 'updated-at'
              @response[name] = value
            end
          end

        end

      end
    end
  end
end

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
fog-1.1.2 lib/fog/zerigo/parsers/dns/get_host.rb
fog_tractical-1.1.4 lib/fog/zerigo/parsers/dns/get_host.rb
fog_tractical-1.1.3 lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
fog-1.1.1 lib/fog/zerigo/parsers/dns/get_host.rb
fog-1.1.0 lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
tag-fog-1.0.1 lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_host.rb
fog-1.0.0 lib/fog/zerigo/parsers/dns/get_host.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/zerigo/get_host.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/zerigo/get_host.rb
fog-0.11.0 lib/fog/dns/parsers/zerigo/get_host.rb
fog-0.10.0 lib/fog/dns/parsers/zerigo/get_host.rb