Sha256: 3d4e410bdf1852fff616bed440d150cb88cd8f3ba7dcd4ea0d4b51d479d2bbe9

Contents?: true

Size: 1.18 KB

Versions: 39

Compression:

Stored size: 1.18 KB

Contents

module Fog
  module DNS
    class DNSimple
      class Real

        # Get the details for a specific domain in your account. You
        # may pass either the domain numeric ID or the domain name itself.
        # ==== Parameters
        # * id<~String> - domain name or numeric ID
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'domains'<~Array>
        #       * 'name'<~String>
        #       * 'expires_at'<~String>
        #       * 'created_at'<~String>
        #       * 'registration_status'<~String>
        #       * 'updated_at'<~String>
        #       * 'registrant_id'<~Integer>
        #       * 'id'<~Integer>
        #       * 'user_id'<~Integer>
        #       * 'name_server_status'<~String>
        def list_domains
          request(
                  :expects  => 200,
                  :method   => 'GET',
                  :path     => '/domains'
                  )
        end

      end

      class Mock

        def list_domains
          response = Excon::Response.new
          response.status = 200
          response.body = self.data[:domains]
          response
        end

      end

    end
  end
end

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
fog-maestrodev-1.19.0.20140212012611 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-1.19.0 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/dnsimple/requests/dns/list_domains.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/dnsimple/requests/dns/list_domains.rb