Sha256: b0c4bb4f5338c379fabd3f8195e0f8cdaab4b32f6c6c66e2c77194d69e185eec

Contents?: true

Size: 750 Bytes

Versions: 9

Compression:

Stored size: 750 Bytes

Contents

module Fog
  module Zerigo
    class DNS
      class Real

        require 'fog/dns/parsers/zerigo/count_zones'

        # Total number of zones hosted Zerigo for this account. It is the same value as provided 
        # in the X-Query-Count header in the list_zones API method
        #
        # ==== Returns
        # * response<~Excon::Response>: 
        #   * body<~Hash>
        #     * 'count'<~Integer> 
        #   * 'status'<~Integer> - 200 indicates success
        def count_zones()
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Zerigo::DNS::CountZones.new,
            :path     => "/api/1.1/zones/count.xml"
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.8.1 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.8.0 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.7.2 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.7.1 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.7.0 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.6.0 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.5.3 lib/fog/dns/requests/zerigo/count_zones.rb
fog-0.5.2 lib/fog/dns/requests/zerigo/count_zones.rb