Sha256: 5834de59f0705ae19b88637a37e709dfe1b83dbfc09346dc86d210c8d75cfca5

Contents?: true

Size: 483 Bytes

Versions: 109

Compression:

Stored size: 483 Bytes

Contents

module Fog
  module Parsers
    module DNS
      module Zerigo

        class GetZoneStats < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'id', 'queries'
              @response[name] = value.to_i
            when 'domain', 'period-begin', 'period-end'
              @response[name] = value
            end            
          end

        end

      end
    end
  end
end

Version data entries

109 entries across 109 versions & 19 rubygems

Version Path
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/parsers/dns/get_zone_stats.rb
fog-1.0.0 lib/fog/zerigo/parsers/dns/get_zone_stats.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/zerigo/get_zone_stats.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/zerigo/get_zone_stats.rb
fog-0.11.0 lib/fog/dns/parsers/zerigo/get_zone_stats.rb
fog-0.10.0 lib/fog/dns/parsers/zerigo/get_zone_stats.rb
fog4encbs-0.9.0.1 lib/fog/dns/parsers/zerigo/get_zone_stats.rb
fog4encbs-0.9.0 lib/fog/dns/parsers/zerigo/get_zone_stats.rb
fog-0.9.0 lib/fog/dns/parsers/zerigo/get_zone_stats.rb